delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/08/00:14:57

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 <tr AT yahoo-inc DOT com>
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: <umzzo3p5suw.fsf@prashant.blr.in.yahoo.com>
Lines: 11
X-Mailer: Gnus v5.7/Emacs 20.7
Reply-To: djgpp AT delorie DOT com

"Martin Rehak" <rehakm2 AT feld DOT cvut DOT cz> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019