|
idt: Porting Unix to the 386: Three Initial PC UtilitiesThe second article in the "PORTING UNIX TO THE 386" series discussed the utilities we had to build to test the port on an actual 80386 PC. After loading the kernel program, we enter protected mode to start up the 386BSD kernel, itself a protected mode program like its own applications. Porting Unix to the 386: Designing the Software SpecificationThis, the first article, is the first published mention of 386BSD. By this time, the project had been operational for 18 months, and William Jolitz was at Berkeley working on the Net/2 release. This article, last of the original three done altogether in 1990, on getting the critical pieces functioning independantly that we needed to do the port. Once these we obtained, the kernel was inevitable. Processor Support -- i386.cWe initialized the processor with initial descriptor and page tables - one needs to run with the tables before activating memory/interrupt kernel functions. Trap HandlingWe coded stub routines to connect trap handlers to descriptor table entry points, wiring the kernel to receive processor traps. Interrupt HandlingWe coded specialized trap handlers for interrupt traps, as these were initimate with the systems interrupt control hardware, not part of the processor. System Call HandlingSystem calls were handled by a call gate, a 386 peculiar mechanism which allowed for ring crossing into supervisor mode using a special segment descriptor call. We simulated user mode to test prior to running in the kernel. GCC Support Calls to Replace GNULIBWe used GCC but not GNULIB, so we had to roll our own support code as needed. Berkeley Copyright License386BSD is a Berkeley system, its authors were from Berkeley, and it is under a Berkeley license. A Brief Review of the RootA breakdown of the various uses of the root filesystems, and the considerations for each as we prove out the operation of the system step by step. Porting Unix to the 386: Research and the Commercial SectorUnderstanding the boundary between research and development with BSD, and where a balance between commercial efforts can be struck. |