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,c72b93d85d765332 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 11:32:33 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!nntp.news.xara.net!xara.net!gxn.net!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail From: "chris.danx" Newsgroups: comp.lang.ada References: <9de6j9$e1s1@news.kvaerner.com> <3jxK6.4356$577.870347@news2-win.server.ntlworld.com> <9de8t0$e1s3@news.kvaerner.com> Subject: Re: Ada and Hardware X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Thu, 10 May 2001 19:28:06 +0100 NNTP-Posting-Host: 213.104.128.117 X-Complaints-To: abuse@ntlworld.com X-Trace: news2-win.server.ntlworld.com 989519246 213.104.128.117 (Thu, 10 May 2001 19:27:26 BST) NNTP-Posting-Date: Thu, 10 May 2001 19:27:26 BST Organization: ntlworld News Service Xref: newsfeed.google.com comp.lang.ada:7494 Date: 2001-05-10T19:28:06+01:00 List-Id: "Tarjei T. Jensen" wrote in message news:9de8t0$e1s3@news.kvaerner.com... > > chris.danx wrote : > >I don't understand FAT12 yet, and it complicates the boot sector. Also the > fs > >can be messed with if it's a fat12 disk easily. I don't want this. Would > you > >want any person coming along and swapping a driver file for another that's > got a > >similar signiture but does malicious things behind the scenes? What's more > >anyone can come along and delete a critical file easy. Two clicks and OS > is > >gone. > > That situation is no worse than anything else that boots from a standard > msdos floppy. If I thought it would be a problem II would make he file(s) > invisible (system). > This is true, but my main reason for doing it with BFS instead of FAT12 is the simplicity of working with the files on it. The Boot sector is simplified grately and so too is the secondary loader (a 32bit Ada loader with floppy driver; the OS will have a new module reconfiguration system which is easier to manage with Ada than ASM). I want to limit my use of ASM in the system to the bootsector if possible. Everything else stands a good chance of being Ada or maybe a teensy bit of C. > >I know how to boot from a floppy for the file system i'm using. It's > really > >easy (just look in 2nd inode to get address of primary kernel file, and > >calculate offset). I just need to get the files from my FAT hard disk to > my BFS > >floppy. The current driver implements a disk as a file on a HD, and it's > really > >easy to work with. The problem is i need to create a bfs enabled disk, > write > >files to it, read info from it, via an interactive shell. I don't know how > to > >do this in Ada (i can do the shell though). I do know how in C. > > If you know how to do it in C, you know how to do it in Ada. I'll try a binding to C and see how it goes.