Source file descriptions: Difference between revisions
(.) |
No edit summary |
||
Line 1: | Line 1: | ||
This page provides a list of source files that make up the Dexter kernel and provides a brief description of each. This page is a work in progress. | This page provides a list of source files that make up the Dexter kernel and provides a brief description of each. This page is a work in progress. | ||
Line 26: | Line 24: | ||
disk.h should be included to use the disk functions in the disk.c file. It also contains definitions for the disk struct type and DEXTER_DISK_TYPE. | disk.h should be included to use the disk functions in the disk.c file. It also contains definitions for the disk struct type and DEXTER_DISK_TYPE. | ||
=== heap.c === | |||
heap.c contains the heap memory implementation including heap creation and utility functions. It also includes versions of malloc and free for allocating and freeing memory on the heap. | |||
=== heap.h === | |||
heap.h needs to be included if you need to allocate memory on the heap. It also contains the heap and heap_table structure definitions. |
Revision as of 16:21, 21 April 2023
This page provides a list of source files that make up the Dexter kernel and provides a brief description of each. This page is a work in progress.
boot.asm
boot.asm contains the assembly code that starts the boot process and changes the CPU from 16-bit real mode to 32-bit protected mode.
config.h
config.h contains definitions providing text replacements for magic numbers.
console.c
console.c is where you'll find functions to initialize the text console as well as writing to the screen. The print and cprint functions are the current preferred way to write to the console.
console.h
console.h should be included to use the terminal functions in the console.c file. It also defines VGA_HEIGHT and VGA_WIDTH.
disk.c
disk.c is the low level disk functions to initialize the disk devices and read from individual disk sectors.
disk.h
disk.h should be included to use the disk functions in the disk.c file. It also contains definitions for the disk struct type and DEXTER_DISK_TYPE.
heap.c
heap.c contains the heap memory implementation including heap creation and utility functions. It also includes versions of malloc and free for allocating and freeing memory on the heap.
heap.h
heap.h needs to be included if you need to allocate memory on the heap. It also contains the heap and heap_table structure definitions.