comp.lang.ada
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
Subject: Re: Ada and Hardware
Date: Thu, 10 May 2001 19:28:06 +0100
Date: 2001-05-10T19:28:06+01:00	[thread overview]
Message-ID: <i4BK6.5817$577.1018056@news2-win.server.ntlworld.com> (raw)
In-Reply-To: 9de8t0$e1s3@news.kvaerner.com


"Tarjei T. Jensen" <tarjei.jensen@kvaerner.com> 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.






  reply	other threads:[~2001-05-10 18:28 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-10 13:02 Ada and Hardware chris.danx
2001-05-10 13:36 ` Ted Dennison
2001-05-10 14:00   ` chris.danx
2001-05-10 14:52     ` Ted Dennison
2001-05-10 18:20       ` chris.danx
2001-05-10 20:01         ` Jerry van Dijk
2001-05-10 20:54           ` chris.danx
2001-05-10 13:54 ` Tarjei T. Jensen
2001-05-10 14:10   ` chris.danx
2001-05-10 14:34     ` Tarjei T. Jensen
2001-05-10 18:28       ` chris.danx [this message]
2001-05-14  7:40         ` Kretschmer, Matthias
2001-05-10 17:24 ` Alfred Hilscher
2001-05-10 20:22   ` Ted Dennison
2001-05-10 23:35     ` Jeff Creem
2001-05-10 23:58       ` Fraser Wilson
2001-05-11  1:54         ` Jeff Creem
2001-05-11 19:13       ` Randy Brukardt
2001-05-14 10:27         ` Alfred Hilscher
2001-05-10 20:53   ` chris.danx
2001-05-11 21:45 ` GNAT for DOS chris.danx
2001-05-13 19:52 ` Ada and Hardware chris.danx
2001-05-14  0:18   ` Jeff Creem
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox