Author Topic: mov between RSI and debug register - segmentation fault.  (Read 5081 times)

Offline rouki

  • Jr. Member
  • *
  • Posts: 5
mov between RSI and debug register - segmentation fault.
« on: July 15, 2014, 10:05:28 AM »
Hey,

I'm using OS X 10.9.4 and the following flags : -f macho64

The following line causing a segmentation fault : mov rsi, dr0

It works fine in 64bit windows MASM.

Any suggestions?

thanks.

p.s.
I'm new to nasm :)

Offline rouki

  • Jr. Member
  • *
  • Posts: 5
Re: mov between RSI and debug register - segmentation fault.
« Reply #1 on: July 15, 2014, 02:35:32 PM »
Nvm I got it :)
Debug registers cannot be used in user mode. Have to be in kernel mode.

thanks