diff options
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 |