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,ef5a6044185c922d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-26 02:04:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!peernews!peer.cwci.net!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <3C7AAA8B.6020507@users.sf.net> <3C7AC0B9.2060108@users.sf.net> Subject: Re: Device driver in Ada95 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Tue, 26 Feb 2002 10:05:03 -0000 NNTP-Posting-Host: 213.104.122.245 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1014717830 213.104.122.245 (Tue, 26 Feb 2002 10:03:50 GMT) NNTP-Posting-Date: Tue, 26 Feb 2002 10:03:50 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:20447 Date: 2002-02-26T10:05:03+00:00 List-Id: "Dave Poirier" wrote in message news:3C7AC0B9.2060108@users.sf.net... > Jerry van Dijk wrote: > > Dave Poirier writes: > > > > > >>My next step is to start to write device drivers in Ada95 using this same > >>setup, so as to have as useable os sooner or later. As my first try, I > >>decided to create a small vga driver for text mode. This requires that I > >>write in memory from 0xB8000 to 0xB8A9F. > >> > > > > This is not very difficult to do. However, GNAT generated x86 code depends > > on the memory management used. So the question here is: are you using > > real-mode, or DPMI, or some other PMODE driver for your own kernel ? Or > > if you use your own scheme, how is the memory organised ? > > To make things simpler at the moment I use a flat memory model in > protected mode, so I have 1 code segment of 4GB starting at 0 > read/execute with a 4GB data segment start at 0 read/write. > > It's my own scheme. You might consider subscribing to the alt.os.development newsgroup if your into os development or related areas. They're quite a helpful bunch. There are few familiar with Ada there (two ppl), but the amount of information there is quite substantial and there's no real particular language bias (assembly, c++, pascal, c, Ada etc), although most are C developers. Also their is a new effort underway to provide a journal for os dev by Jens Olsson and the more experienced developers over there available at http://www.osjournal.n3.net/. > btw, thanks to chris.danx, I couldn't find any code on the original > AdaOS site, the link you provided was indeed usefull. (maybe you should > consider using an array of pointers and a loop instead of repeating 255 > times the same code sequence) ;) It isn't my code, it's Serge Robyns. Chris Campbell