From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5e14790626dc0cf1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-22 05:37:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!uni-erlangen.de!news-nue1.dfn.de!news-han1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!cert.uni-stuttgart.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Gnat Asm Insertion Question Date: 22 Oct 2001 14:37:07 +0200 Organization: RUS-CERT, University of Stuttgart, Germany Sender: rusfw@mercury.rus.uni-stuttgart.de Message-ID: References: <9r0vhg$evr$1@suaar1aa.prod.compuserve.com> NNTP-Posting-Host: mercury.rus.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: hornet.rus.uni-stuttgart.de 1003754184 4777 129.69.1.226 (22 Oct 2001 12:36:24 GMT) X-Complaints-To: abuse@cert.uni-stuttgart.de NNTP-Posting-Date: Mon, 22 Oct 2001 12:36:24 +0000 (UTC) User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:15021 Date: 2001-10-22T14:37:07+02:00 List-Id: "Michael Garrett" 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.