|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "kernel.h"#include "panic.h"#include "assert.h"#include "common/error.h"#include "fs/fs.h"#include "fs/devfs.h"#include "fs/tmpfs.h"#include "fs/procfs.h"#include "fs/block_cache.h"#include "console/termios.h"#include "time/clock.h"#include "hal/hal.h"#include "vfs/vfs.h"#include "common/stdio.h"#include "arch/arch.h"#include "drivers/disk/ata.h"#include "drivers/disk/partition.h"#include "drivers/disk/ramdisk.h"#include "drivers/disk/ahci.h"#include "drivers/disk/nvme.h"#include "drivers/pci/pci.h"#include "drivers/mouse/ps2_mouse.h"#include "drivers/sound/ac97.h"#include "drivers/sound/hda.h"#include "drivers/usb/xhci.h"#include "acpi/acpi.h"#include "arch/x86/cpu/apic.h"#include "time/timer.h"#include "drivers/keyboard/keyboard.h"#include "console/console.h"#include "kernel/device/device.h"#include "kernel/input/input.h"#include "kernel/tty/pty.h"#include "kernel/device/null.h"#include "drivers/video/display.h"#include "drivers/video/fb/fb.h"#include "drivers/net/virtio_net.h"#include "kernel/net/netif.h"#include "kernel/random/random.h"#include "drivers/video/virtio_gpu.h"#include "common/memory.h"#include "common/string.h"#include "klog/klog.h"#include "memory/kernel_layout.h"#include "arch/x86/boot/multiboot2.h"#include "memory/pmm.h"#include "memory/pmm_layout.h"#include "memory/region.h"#include "memory/reservations.h"#include "memory/heap.h"#include "memory/kstack.h"#include "memory/mmio.h"#include "arch/x86/cpu/paging.h"#include "syscall/syscall.h"#include "process/process.h"#include "scheduler/scheduler.h"#include "kernel/cmdline.h"#include "kernel/memory/tlb.h"#include "kernel/cpu/cpu.h"#include "kernel/irq/irq.h"#include "arch/arch_cpu.h"#include "usermode/usermode.h"Macros | |
| #define | ARCH_NAME "i686" |
Functions | |
| void | cstart (phys_addr_t boot_phys, uint32_t magic) |
| stable kernel entry point invoked from early asm with boot metadata. | |
| void | kernel_main (boot_info_t *boot) |
| entry point for the c kernel after early asm setup. | |
| #define ARCH_NAME "i686" |
| void cstart | ( | phys_addr_t | boot_phys, |
| uint32_t | magic ) |
stable kernel entry point invoked from early asm with boot metadata.
| boot_phys | physical address of the boot information: stage2's boot_info_t, or the multiboot 2 information. |
| magic | MULTIBOOT2_BOOT_MAGIC for a multiboot 2 boot, else 0. |
| void kernel_main | ( | boot_info_t * | boot | ) |
entry point for the c kernel after early asm setup.
| boot | pointer to bootloader-provided boot_info_t. |