mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
* We did loose tasking and only have a paging skeleton, but hey it took like 4 months so i'm happy that there's something :p
14 lines
711 B
Plaintext
14 lines
711 B
Plaintext
Bootup Sequence
|
|
===============
|
|
|
|
When the system boots, the bootloader will look for a kernel image and init ram
|
|
disk. It will do some basic setup, load these into memory and hand over control.
|
|
Since kern uses a µ-kernel, it only contains the minimal number of device
|
|
drives that it must. One of these is a ramfs/tmpfs driver. It uses this driver
|
|
to load and execute a program at '/init' inside the initrd as process 1. This
|
|
process is then responsable for running things like a disk & filesystem server
|
|
that loads the actual OSes root filesystem. Usually it would also replace
|
|
iself with '/sbin/init' from the root filesystem that would finish initialization
|
|
and do things like launching a login shell, etc.
|
|
|