comp.lang.ada
 help / color / mirror / Atom feed
From: JCS <SANS.SPAM@MERCI.FR>
Subject: Re: GNAT and no runtime
Date: Thu, 27 May 2004 23:30:19 +0200
Date: 2004-05-27T23:30:40+02:00	[thread overview]
Message-ID: <pan.2004.05.27.21.30.14.47358@hejmreto.net> (raw)
In-Reply-To: mailman.11.1085666031.391.comp.lang.ada@ada-france.org

On Thu, 27 May 2004 08:58:10 -0500, sk wrote:

> JCS <SANS.SPAM@MERCI.FR>:
>  > ... <snip>
>  >
> 
> So, in sumary, you are porting the GNAT run-time ?
Not the whole, just a very small subset of it, just to have exceptions
working. In fact, I would be perfectly happy if I didn't have to
reimplement some GNAT RT functions, but unfortunately it seems that I have
to.

> The point I am trying to make is that to port a run-time, you need to
> know what you are porting it to ! Replacing each run-time function at a
> time will probably work, but why not actually step back and write the
> kernel/executive to achieve your goals and then port the GNAT run-time
> to your kernel's capabilities ?
You probably misunderstand me, I was wishing exception because it helps to
develop my kernel, it's not a functionnality of the kernel. See it as a
debug feature.

> 
>  > Even if I disagree with your design, ...
> 
> Not "my design", it is how the Intel (>= i386) chips are built. Why not
> use the security/ring features of the chip if they are available ?
A short answer: ring 1 and 2 in the Intel protection mechanism are almost
useless, they don't provide any useful instruction that are in ring 0, but
they can access all memory of user-levels apps (ring 3).
Btw, the only system who use ring 2 is OS/2 and it was for some graphics
stuff. I don't know any real-life OS which use ring 1.
Almost all others processors have only 2 protections levels: supervisor
(ring 0 on Intel) and application (ring 3 on Intel). But again it is out
of topic here.

>  > ...it would be out of topic here.
> 
> Discussion of OS written in Ada off topic ? Sorry, I disagree, the topic
> seems appropriate to comp.lang.ada

Simply, it is more OS design relative than Ada relative.

Regards,
JC



  reply	other threads:[~2004-05-27 21:30 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 20:57 GNAT and no runtime JCS
2004-05-26  7:46 ` Rolf Ebert
2004-05-26 12:17   ` JCS
2004-05-28 15:13   ` JCS
2004-05-26 10:52 ` Wojtek Narczynski
2004-05-26 12:33   ` JCS
2004-05-26 16:05     ` Martin Krischik
2004-05-27  9:40       ` Wojtek Narczynski
2004-05-28 20:42       ` Wojtek Narczynski
2004-06-08  5:43         ` Martin Krischik
2004-06-09  5:07           ` Simon Wright
2004-06-09  6:22             ` Martin Krischik
2004-06-09  7:20               ` Martin Dowie
2004-06-09  7:52                 ` Martin Krischik
2004-06-09  9:26                   ` Martin Dowie
2004-06-09 11:50                     ` Martin Krischik
2004-06-10  5:15                       ` Simon Wright
2004-06-09 16:33             ` Robert I. Eachus
2004-05-27 10:23     ` Wojtek Narczynski
2004-05-27 12:45       ` JCS
2004-05-26 19:51   ` Georg Bauhaus
2004-05-27  9:43     ` Wojtek Narczynski
2004-05-26 16:44 ` sk
2004-05-26 17:42   ` JCS
2004-05-26 21:33     ` sk
2004-05-26 23:12       ` JCS
2004-05-27 13:58         ` sk
2004-05-27 21:30           ` JCS [this message]
2004-05-27 22:42             ` sk
replies disabled

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