OpenBSD kernel hack memo

Boot処理

  1. Bootstrap
    1. HDDの話
    2. MBR [Master Boot Recode]
    3. MBR処理
    4. PBR [Partition Boot Record]
    5. PBR(biosboot)処理
  2. boot
    1. startup(srt0.S)
      1. pmm_init
      2. _rtt
    2. boot関数
      1. machdep関数
        1. ps2probe
        2. gateA20on
        3. debug_init
        4. cninit
        5. apmprobe
        6. pciprobe
        7. memprobe
        8. diskprobe
      2. loadfile関数
        1. elf_exec関数
      3. run_loadfile関数
  3. locore
    1. ページングの設定
    2. init386関数

調査資料

  1. i386 CPU
    1. Register (未完)
    2. CPUの判別
    3. メモリ機構
      1. セグメント機構
      2. ページング機構1
      3. ページング機構2
    4. 割り込みと例外
      1. リアルモードの割り込み/例外
      2. プロテクトモードの割り込み/例外
  2. H/W
    1. キーボード コントローラ(KBC)
    2. GATE A20
    3. BIOS Data Area
    4. IO Base Address
  3. OpenBSDで使われるデータ構造
    1. List
      1. Singly-linked List(SLIST)
      2. Doubly-linked List(LIST)
    2. Queue
      1. Simple queue(SIMPLEQ)
      2. Tail queue(TAILQ)
      3. Circle queue(CIRCLEQ)
  4. ファイルフォーマット
    1. a.out format
    2. elf format
  5. コンパイラとか
    1. GCC マニュアル
    2. Gnu Assembler
    3. GCC Inline Assembler
  6. Kernel Sorce
    1. OpenBSD Kernel Source
  7. Install
    1. USBメモリにOpenBSDのインストールディスクを作成する方法

参考文献

  1. boot関連
    1. Computer Boot Sequence
    2. i386 Boot Mysteries (MBR/PBSの説明が詳しい)
    3. List of partition identifiers for PCs (partition tableの一覧)
  2. herd関連
    1. Technical Committee T13 AT Attachment (ATA/ATAPI規格)
    2. パソコンのレガシィI/O活用大全
  3. アセンブラ関連
    1. Ralf Browns Interrupt List (BIOS CALL一覧)
    2. The x86 Interrupt List
  4. IA-64関連
    1. IA-64 の未来
    2. [news] IA-64 (Intel Architecture 64) 関連
  5. 規格書関連
    1. sandpile.org -- The world's leading source for pure technical x86 processor information.
    2. Free Standards Group (ELF/ABI資料)
    3. Tools Interface Standards and Manuals (ELF等のObject Format資料)
Last modified: Wed May 26 18:19:39 2010 JST