Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can someone explain me the supervisor mode in the 68000 ?

69 views
Skip to first unread message

PIRONNEAU Stéphane

unread,
May 29, 2012, 6:52:19 AM5/29/12
to
Hi,

Can someone explain me the supervisor mode
in the 68000, and how it is useful for a multitasking
environment or OS ?

Thank's,

http://stephane.pironneau.free.fr



Zoltan Kocsi

unread,
May 30, 2012, 9:06:17 PM5/30/12
to
On Tue, 29 May 2012 12:52:19 +0200
PIRONNEAU Stéphane <stephane....@free.fr> wrote:

> Hi,
>
> Can someone explain me the supervisor mode
> in the 68000, and how it is useful for a multitasking
> environment or OS ?

It is to do with protection of resources.
If you also have an MMU with the chip, then the supervisor an user
modes give you the following:

- different tasks can not access each other's memory (MMU)
- user tasks can not directly access peripherals
- user tasks can not directly control interrupts
- user tasks always have to go through the supervisor for any system
services

If you use the chip for an embedded system which runs only code you
wrote and which users can not modify, then you don't really need all
that and usually everything runs in supervisor mode (and no MMU). All
the tasks are yours, so you know that they are not malicious and do not
try to break the system.

However, on a system where you can have multiple users (including
hostile users) or you have to cater for programs from unknown origin
(including hostile code), then you can use the supervisor mode + MMU to
protect your system. A user can destroy his/her own tasks, but has no
access to other tasks and/or shared system resources.

It should be noted that the 68000's exception model had a flaw which
made it nearly impossible to realise virtual memory (you could do it
with two 68000 chips running in sync but a few clocks apart).
Motorola fixed that in the 68010.

Regards,

Zoltan

--
Zoltán Kócsi
Bendor Research Pty. Ltd.

PIRONNEAU Stéphane

unread,
Jun 22, 2012, 8:43:52 AM6/22/12
to
Zoltan Kocsi a écrit :
> ZoltĂĄn KĂłcsi
> Bendor Research Pty. Ltd.

Thank you very much Zoltan, here is a link about the 68k :

http://infoindustrielle.free.fr/68K_html/page_guide_68K.htm

http://stephane.pironneau.free.fr


tridac

unread,
Sep 18, 2013, 7:47:18 AM9/18/13
to
On 06/22/12 12:43, PIRONNEAU St�phane wrote:

>
> Thank you very much Zoltan, here is a link about the 68k :
>
> http://infoindustrielle.free.fr/68K_html/page_guide_68K.htm
>
> http://stephane.pironneau.free.fr
>
>

The other key thing is that certain instructions are only executable
in supervisor mode. User and supervisor modes also get separate stack
pointers, but share a common processor status register.

The basic idea of multiple modes is to provide partitioning and to
allow protected levels of access to processor facilities. The classic
model of this looks like the the rings on a tree, with inner rings
(kernel, os) having more priviledge, outer rings (user) less...

Regards,

Chris
0 new messages