diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-30 14:32:01 -0400 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-07-30 14:32:01 -0400 |
commit | b905869a35f062a4e5072f10bec3a2ba3db0e365 (patch) | |
tree | 0666691804878857b4bb07daca8a54f5ddb8ae0b /include/device/processor.h | |
download | jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.tar.gz jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.tar.bz2 jove-kernel-b905869a35f062a4e5072f10bec3a2ba3db0e365.zip |
working userland with some invoke syscalls
Diffstat (limited to 'include/device/processor.h')
-rw-r--r-- | include/device/processor.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/device/processor.h b/include/device/processor.h new file mode 100644 index 0000000..33deed4 --- /dev/null +++ b/include/device/processor.h @@ -0,0 +1,22 @@ +#ifndef _JOVE_DEVICE_PROCESSOR_H +#define _JOVE_DEVICE_PROCESSOR_H 1 + +#if defined(__x86_64__) +#include "arch/x86_64/processor.h" +#endif + +/**@FUNC Initialize the bootstrap processor.*/ +void bsp_setup(void); +/**@FUNC Initialize the given processor with kernel-specific values. + * Generically: + * Instantiates a new kernel object representing the passed processor. + * For x86_64: + * Loads and uses the generic GDT and IDT. + * @PARAM processor processor to initialize.*/ +void processor_setup(void* processor); + +/**@FUNC Returns the processor struct this function is called by. + * @RET pointer to current processor.*/ +void *processor_current(void); + +#endif |