Mac OS nanokernel
|This article needs additional citations for verification. (February 2012)|
Before OS X, PowerPC versions of the Mac OS were based on a nanokernel, or extremely simple operating system kernel. The initial revision of this software is an extremely simple, single tasking system which delegates most tasks to an emulator running the Motorola 68K version of the operating system. The second major revision supports multitasking, multiprocessing, and message passing, and would be more properly called a microkernel. Unlike the 68K-derived Mac OS kernel running within it, the PowerPC kernel exists in a protected memory space and executes device drivers in user mode. The nanokernel is completely different from the Copland OS microkernel, although they were created in succession with similar goals.
System 7.1.2—Mac OS 8.5.1
The original nanokernel, and the tightly integrated Mac 68k emulator, were written by emulation consultant Gary Davidian. Its main purpose was to allow the existing Motorola 68K version of the operating system to run on new hardware. As such, the "normal" state of the system was to be running 68K code. The operating system did little until activated by an interrupt, which would be quickly mapped to its 68K equivalent within the virtual machine.
Other tasks may include switching back to PowerPC mode, if necessary, upon completion of the interrupt handler, and mapping the Macintosh virtual memory system to the PowerPC hardware. However, as the software is little documented, these might instead be handled by the emulator running in user mode.
This nanokernel was stored on the Mac OS ROM chip integrated into Old World ROM computers, or inside the Mac OS ROM file on disk on the New World ROM computers, rather than being installed in the familiar sense.
Progress after 1994 demanded additional functionality. A forward-looking architecture was introduced for PCI card drivers in anticipation of Copland OS, which supported memory protection. The Open Transport networking architecture introduced standardized PowerPC synchronization primitives. The DayStar Digital Genesis MP Macintosh clone required kernel extensions to support multiprocessing. This evolution would later affect the overhaul to the nanokernel in Mac OS 8.6.
Mac OS 8.6 and later
- Inside Macintosh: PowerPC System Software. Apple Technical Library. Reading, Mass.: Addison-Wesley Pub. Co. 1994. ISBN 978-0-201-40727-3. OCLC 29636881. Retrieved April 3, 2013.
- Inside Macintosh: PowerPC System Software. Apple Technical Library. Apple Computer, Inc. July 3, 1996. Archived from the original on May 18, 2008. Retrieved April 4, 2013.
- "Technical Note TN1084: Running CFM-68K Code at Interrupt Time: Is Your Code at Risk?". Apple Computer, Inc. March 27, 1997. Archived from the original on June 23, 2004. Retrieved April 4, 2013.
- The Road to Power Macintosh 11. Macworld. May 1994.
|This Apple-related article is a stub. You can help Wikipedia by expanding it.|