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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c65ca5609a07b8c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-21 18:45:08 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Carroll-Tech" Newsgroups: comp.lang.ada Subject: Re: Hardware Interrupts Date: Sat, 21 Feb 2004 20:01:02 -0700 Organization: Cuivre, Argent, Or Message-ID: References: <20040222005514.BF2284C40CF@lovelace.ada-france.org> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1077417740 79003 212.85.156.195 (22 Feb 2004 02:42:20 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Sun, 22 Feb 2004 02:42:20 +0000 (UTC) To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:5718 Date: 2004-02-21T20:01:02-07:00 > From: tmoran@acm.org > Subject: system calls, was Re: Hardware Interrupts > > > task Interrupt_handler is > > ... > > I want to call the BIOS interrupt (INT11h) to get the equipment list [snip] > BTW, what machine has a BIOS INT11h call? Good question! I'm just going by the information in Kip R. Irvine's book "Assembly Language For Intel-Based Computers", third edition. I also found the same information in a book called "DOS 5: A Developer's Guide" by Al Williams (page 163). This book does say 80286 - 80486. So...it must be pretty old. > ------------------------------ > From: sk > Subject: Re: Hardware Interrupts > > andrew@carroll-tech.net: > > > procedure getequipment is [snip] > I don't know any answers to your questions. What I do > remember about any assembly calls to BIOS interrupts > is that you have to set up the registers with parameters > etc. Okay, I understand that regarding "assembly" but not going through Ada. > You are using GNAT from your examples. Which version > and platform ? Gnat 3.15p on a FreeBSD Unix 5.1 > If it is an Intel compiler running in "protected" mode, > that is 32-bit address space etc, the physical address > "16#11# does not corespond to the interrupt 11. Once [snip] > entering protected mode. Basically I've made my own bootloader and it will boot programs that I create. So there is no kernel loaded or anything like that. The bootloader loads the program I want right after the BIOS is done. In fact, I am trying this "stuff" out because I want to learn more about kernels (other than reading in a book) and how to do PIC programming and stuff like that. > If you are still determined to go into never-never land, > you need to look at Ada's machine code insertions. Links? References? >The code you posted looks potentially fatal to your machine. Hey, how else am I going to learn? If I make a mistake at least it's not while I'm working for some client or something. I'm just doing some of my own research. > Sorry, not much help, but I am hoping that you don't > trash your system by being determined to call a > possible inaccessible BIOS. I'll look into this before I continue. I don't really wan't to format the disk either, even though it's not imperitive at this point if it happens. Thanks!