From: Florian Weimer <Florian.Weimer@RUS.Uni-Stuttgart.DE>
Subject: Re: Gnat Asm Insertion Question
Date: 22 Oct 2001 14:37:07 +0200
Date: 2001-10-22T14:37:07+02:00 [thread overview]
Message-ID: <tgelnv4zrg.fsf@mercury.rus.uni-stuttgart.de> (raw)
In-Reply-To: 9r0vhg$evr$1@suaar1aa.prod.compuserve.com
"Michael Garrett" <michaelgarrett@csi.com> writes:
> I have the following snippet of code to put the processot into protected
> mode:
>
> Asm ("movl %%cr0,%%eax; " &
> "or $0x0001,%%eax; " &
> "movl %%eax,%%cr0; " &
> "ljmp $0x10,$1f; " &
> "1: " &
> "movl $0x18,%%eax; " &
> "movl %%eax,%%ds; " &
> "movl %%eax,%%es; " &
> "movl %%eax,%%fs; " &
> "movl %%eax,%%gs; " &
> "movl %%eax,%%ss; ",
> No_Output_Operands,
> No_Input_Operands);
The output constraints are probably wrong, This sequence of
instructions changes a huge number of registers.
next prev parent reply other threads:[~2001-10-22 12:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-22 11:20 Gnat Asm Insertion Question Michael Garrett
2001-10-22 11:26 ` Lutz Donnerhacke
2001-10-22 12:37 ` Florian Weimer [this message]
2001-10-22 14:50 ` Michael Garrett
2001-10-22 14:57 ` Lutz Donnerhacke
2001-10-22 15:04 ` Florian Weimer
2001-10-23 4:12 ` Michael Garrett
2001-10-22 18:50 ` FGD
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox