OSKit contains a library of kernel support functions. This includes things like default trap handlers, access to special processor modes and registers, and remote debugging support for GDB.
There is also a library for loading a.out or ELF executable images into memory and jumping to them. This is similar to BFD, only this is only good for reading these two formats. It also only works on executable images.
cpu_info - CPU identification data structure.
cpuid - identify the current CPU.
cpu_info_format - output a cpu_info structure in ASCII form.
cpu_info_min - return the minimum feature set of two CPU information structures.
cpu_info_dump - pretty-print a CPU information structure to the console.
i16_enter_pmode - enter protected mode.
i16_leave_pmode - leave protected mode.
paging_enable - enable page translation.
paging_disable - disable page translation.
gate_init - install gate descriptors.
base_vm.h - definitions for the base virtual memory environment.
base_cpu_setup - initialize and activate the base CPU environment.
base_cpu_init - initialize the base environment data structures.
base_cpu_load - activate the base processor execution environment.
base_cpuid - global variable describing the processor
base_gdt - default global descriptor table for the base environment.
base_gdt_init - initialize the base GDT to default values.
base_gdt_load - load the base GDT into the CPU.
base_idt - default interrupt descriptor table.
base_idt_load - load the base IDT into the current processor.
base_tss - default task state segment.
base_tss_init - initialize the base task state segment.
base_tss_load - load the base TSS into the current processor.
trap_state - saved state format used by the default trap handler.
base_trap_init - initialize the processor trap vectors in the base IDT.
base_trap_inittab - initialization table for the default trap entrypoints.
base_trap_handlers - Array of handler routines for hardware traps.
base_trap_default_handler - default trap handler for unexpected traps.
trap_dump - dump a saved trap state structure.
trap_dump_panic - dump a saved trap state structure.
base_paging_init - create minimal kernel page tables and enable paging.
base_pdir_pa - initial kernel page directory.
pdir_find_pde - find an entry in a page directory given a linear address.
ptab_find_pte - find an entry in a page table given a linear address.
pdir_find_pte - look up a page table entry from a page directory.
pdir_get_pte - retrieve the contents of a page table entry.
ptab_alloc - allocate a page table page and clear it to zero.
ptab_free - free a page table allocated using ptab_alloc.
pdir_map_page - map a 4KB page into a linear address space.
pdir_unmap_page - unmap a single 4KB page mapping.
pdir_map_range - map a contiguous range of physical addresses.
pdir_prot_range - change the permissions on a mapped memory range.
pdir_unmap_range - remove a mapped range of linear addresses.
pdir_clean_range - free unused page table pages in a page directory.
pdir_dump - dump the contents of a page directory and all its page tables.
ptab_dump - dump the contents of a page table.
phys_lmm.h - Physical memory management for PCs.
phys_mem_max - Highest physical memory address.
phys_lmm_init - Initialize kernel physical memory LMM.
phys_lmm_add - Add memory to the kernel physical memory LMM.
base_irq.h - Hardware interrupt definitions for standard PCs.
base_irq_handlers - Array of handler routines for hardware interrupts.
base_irq_init - Initialize hardware interrupts.
base_irq_inittab - initialization table for default interrupt entrypoints.
base_irq_default_handler - default IRQ handler for unexpected interrupts.
base_irq_nest - interrupt nesting counter and software interrupt flag.
base_irq_softint_request - request a software interrupt.
base_irq_softint_handler - handler for software interrupts.
base_console.h - definitions for base console support.
base_console_init - Initialize the base console.
base_cooked_termios - Default termios setting for cooked-mode console.
base_raw_termios - Default termios setting for raw-mode console.
direct_cons_getchar - wait for and read a character from the keyboard.
direct_cons_putchar - write a character to the video console.
direct_cons_trygetchar - read an available character from the keyboard.
com_cons_init - initialize a serial port.
com_cons_getchar - wait for and read a character from a serial port.
com_cons_putchar - write a character to a serial port.
com_cons_flush - delay until all output is flushed on a serial line.
com_cons_enable_receive_interrupt - enable receive interrupts on a serial port.