summaryrefslogtreecommitdiff
path: root/src/README
blob: 620fab3675519605b9ccd299be3c83ba913c9047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
* boot.bin - boot sector (stage 1 and 2, total 2k), offset 0x7c00
  * boot.asm - the main boot sector code using:
* kernel.bin - linked kernel with fix start offset 0x8400
  * boot_gdt.asm - the early GDT, flat memory model, no protection
  * stage1_functions.asm - real mode functions of the bootloader
  * stage2_functions.asm - protected mode primitive VGA routines
  * switch_mode.asm - early GTD loading and switching from real to protected mode
  * kernel.c - Kernel C entry point 'entry'
* magic.bin (512 bytes magic marker sector)
  * magic.asm

kernel utility routines
* console.c - the kernel console, can use VGA or serial port for now
* vga.c - VGA basic output routines for early kernel output
* serial.c - serial output to COM1 (only sequential ASCII chars, no terminal)
* port.c, port.asm - I/O ports
* interrupts.c, interrups.asm - interrupt handlers

C library definitions
* stddef.h - definition of NULL, size_t
* limits.h - domain range constants like INT_MAX

C library routines
* string.c - string, memory functions
* stdlib.c - UNIX standard library functions
* stdio.c - I/O functions, printing