public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] Re: Memory protection
@ 1998-11-30 17:49 Kenneth Porter
       [not found] ` < 199812010149.RAA04717@mail.well.com >
  0 siblings, 1 reply; 5+ messages in thread
From: Kenneth Porter @ 1998-11-30 17:49 UTC (permalink / raw)
  To: eCos Discuss

On Fri, 27 Nov 1998 15:04:06 GMT, Bart Veer wrote:

>4) limited protection support, primarily for debugging purposes, for
>   example the ability to invalidate certain parts of the address
>   space like location 0.

I'd add the ability to write-protect code in RAM once it's read in,
both for debugging and to protect it from wild pointers in the field.
Same thing for memory-mapped non-volatile parameter memories (ie.
EEPROM).

Read-protecting code (ie. limiting it to execute-only access) would be
useful in chasing wild read pointers. (BTW, can GCC store vtables in
non-code read-only memory, so that it can have different access rights
than code or data pages? Such memory would hold read-only data objects
like strings and function pointers.)

I don't see a strong need for the MMU for multiple processes, myself.
Instead, it would serve the same purpose as a watchdog timer: to
protect a system from runtime problems.


Kenneth Porter
Kensington Laboratories, Inc.
mailto:kenneth_porter@kensingtonlabs.com
http://www.kensingtonlabs.com


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [ECOS] Re: Memory protection
@ 1998-12-01  0:49 Chris Waters
       [not found] ` < 002201be1d07$11a42820$b7894fd1@speedy >
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Waters @ 1998-12-01  0:49 UTC (permalink / raw)
  To: bartv; +Cc: ecos-discuss

>The question here is exactly what you want memory protection for?
>The current eCos system is oriented towards multi-threaded
>applications rather than multitasking.

I was thinking more about protecting the OS from errant user code. When user
code is run-time downloadable there is a danger that it won't be as well
tested as the kernel.

I haven't really given much thought to the practical difficulties of doing
this. You mention the overhead when making system calls. Is this because the
MMU mappings need to be replaced with the system mappings when control
passes to the OS and back to the user mappings when it switches back to user
code?

Chris.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [ECOS] Memory protection
@ 1998-11-27  7:04 Chris Waters
       [not found] ` < 006201be19cc$b8311600$bc314ed1@speedy >
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Waters @ 1998-11-27  7:04 UTC (permalink / raw)
  To: ecos-discuss

Hi,

From what I can see at the moment ecos provides no support for memory
protection. Does anyone have any feel for how easy/hard it would be to add
memory protection to the kernal for processors that provide it?

I am thinking about porting ecos to the IBM PowerPC 403GC.

Chris Waters.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-12-05 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-30 17:49 [ECOS] Re: Memory protection Kenneth Porter
     [not found] ` < 199812010149.RAA04717@mail.well.com >
1998-12-01  7:33   ` Bart Veer
  -- strict thread matches above, loose matches on Subject: below --
1998-12-01  0:49 Chris Waters
     [not found] ` < 002201be1d07$11a42820$b7894fd1@speedy >
1998-12-05 10:56   ` Bart Veer
1998-11-27  7:04 [ECOS] " Chris Waters
     [not found] ` < 006201be19cc$b8311600$bc314ed1@speedy >
1998-11-27  7:04   ` [ECOS] " Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).