[go: up one dir, main page]

Skip to content

A WIP i8086 Real Mode kernel + userspace utilising COM executables

License

Notifications You must be signed in to change notification settings

505e06b2/__farOut-OS

Repository files navigation

Build and Run in QEMU

make init
make run

Operational Info

  • Only 2880 sector (1.44MB) floppy disks are currently supported
  • Only FAT12 read operations are currently supported
  • Tiny Memory Model - Code, Data, Stack, Heap all in one segment
  • One segment per binary, but frequent use of Far Functions
  • Libc has access to Kernel functions
  • Executables have access to Libc functions

Assumptions

  • When loading files, it is assumed that are under 64k as they would not entirely fit into a segment

Design

  • Kernel operates a stack as it executes code
  • Libc does not have a stack. The design of the stdlib is to provide far functions to programs that inter-operate with the kernel

Layout Of Memory By Segment

0 1 2 3 4 5 6 7 8+
[Unusable] Scratch Space
(File Loading)
* * * Init (Shell) Libc Kernel [Unusable]