NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: rouki on July 15, 2014, 10:05:28 AM

Title: mov between RSI and debug register - segmentation fault.
Post by: rouki 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 :)
Title: Re: mov between RSI and debug register - segmentation fault.
Post by: rouki 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