UNIX v6

Overview

  • UNIX 6th edition (for first half of the term):

    Newer UNIXs have inherited many of the conceptual ideas even though they added paging, networking, graphics, etc.

    You will need to read most of the source code multiple times. Your goal is to explain every line to yourself without using the commentary. Read it one or multiple times with Lion's commentary until you reach the goal.

    V6 organization

    The OS is organized as a (monolithic) kernel, with user programs running in their own address space. Address spaces are set up using page address register (PAR) and page descriptor register (PDR). Note that physical addresses (18 bits) are bigger than virtual addresses (16 bits)

    User address spaces are limited to 64Kbyte (on pdp11/40), and the kernel one to 48Kbyte. The top 8Kbyte of the kernel address space is reserved for memory-mapped I/O. Of the 8Kbyte below that in the virtual address, 1Kbyte is used for the u structure.

    Booting v6 (chapter 6)

    PDP-11 assembly (8 general register, pc (r7), sp (r6), environment (r5)). r0, r1 used for results

    We covered the lines 612 through 0669 using the simulator. These lines are explained by Lions in Chapter 6, but the accompanying picture may be helpful, since it depicts the end result.