X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Sender: tr AT prashant DOT blr DOT in DOT yahoo DOT com
From: Prashant TR
To: djgpp AT delorie DOT com
Subject: Re: DJGPP -how to exec RD/WRMSR
References: <3C3984F4 DOT 20673 DOT 3BD50 AT localhost>
Date: 08 Jan 2002 10:42:07 +0530
In-Reply-To: "Martin Rehak"'s message of "Mon, 7 Jan 2002 11:22:28 +0100"
Message-ID:
Lines: 11
X-Mailer: Gnus v5.7/Emacs 20.7
Reply-To: djgpp AT delorie DOT com
"Martin Rehak" writes:
> How can i execute RDMSR or WRMSR instruction in my DJGPP
> program?
> When i do it via direct opcode in inline AT&T assembler it crashes
> on SIGSEGV. When i execute it in ASM program it works fine.
> I know that this is some 32bit privileg instruction....
You probably used the wrong opcode. Remember that the same opcodes
works differently in 16-bit and 32-bit modes. Check the disassembly
for the asm program and you can get the correct opcode.