Move architecture specific globals to external header, as ex. there is no GDT on ARM
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
79a5027bca
commit
7ac434cb99
24
xtoskrnl/includes/amd64/globals.h
Normal file
24
xtoskrnl/includes/amd64/globals.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/**
|
||||||
|
* PROJECT: ExectOS
|
||||||
|
* COPYRIGHT: See COPYING.md in the top level directory
|
||||||
|
* FILE: xtoskrnl/includes/amd64/globals.h
|
||||||
|
* DESCRIPTION: XT kernel global variables related to AMD64 architecture
|
||||||
|
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __XTOSKRNL_AMD64_GLOBALS_H
|
||||||
|
#define __XTOSKRNL_AMD64_GLOBALS_H
|
||||||
|
|
||||||
|
#include <xtos.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* Initial GDT */
|
||||||
|
EXTERN KGDTENTRY ArInitialGdt[GDT_ENTRIES];
|
||||||
|
|
||||||
|
/* Initial IDT */
|
||||||
|
EXTERN KIDTENTRY ArInitialIdt[IDT_ENTRIES];
|
||||||
|
|
||||||
|
/* Initial TSS */
|
||||||
|
EXTERN KTSS ArInitialTss;
|
||||||
|
|
||||||
|
#endif /* __XTOSKRNL_AMD64_GLOBALS_H */
|
@ -10,17 +10,9 @@
|
|||||||
#define __XTOSKRNL_GLOBALS_H
|
#define __XTOSKRNL_GLOBALS_H
|
||||||
|
|
||||||
#include <xtos.h>
|
#include <xtos.h>
|
||||||
|
#include ARCH_HEADER(globals.h)
|
||||||
|
|
||||||
|
|
||||||
/* Initial GDT */
|
|
||||||
EXTERN KGDTENTRY ArInitialGdt[GDT_ENTRIES];
|
|
||||||
|
|
||||||
/* Initial IDT */
|
|
||||||
EXTERN KIDTENTRY ArInitialIdt[IDT_ENTRIES];
|
|
||||||
|
|
||||||
/* Initial TSS */
|
|
||||||
EXTERN KTSS ArInitialTss;
|
|
||||||
|
|
||||||
/* FrameBuffer information */
|
/* FrameBuffer information */
|
||||||
EXTERN HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
|
EXTERN HAL_FRAMEBUFFER_DATA HlpFrameBufferData;
|
||||||
|
|
||||||
|
24
xtoskrnl/includes/i686/globals.h
Normal file
24
xtoskrnl/includes/i686/globals.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/**
|
||||||
|
* PROJECT: ExectOS
|
||||||
|
* COPYRIGHT: See COPYING.md in the top level directory
|
||||||
|
* FILE: xtoskrnl/includes/i686/globals.h
|
||||||
|
* DESCRIPTION: XT kernel global variables related to i686 architecture
|
||||||
|
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __XTOSKRNL_I686_GLOBALS_H
|
||||||
|
#define __XTOSKRNL_I686_GLOBALS_H
|
||||||
|
|
||||||
|
#include <xtos.h>
|
||||||
|
|
||||||
|
|
||||||
|
/* Initial GDT */
|
||||||
|
EXTERN KGDTENTRY ArInitialGdt[GDT_ENTRIES];
|
||||||
|
|
||||||
|
/* Initial IDT */
|
||||||
|
EXTERN KIDTENTRY ArInitialIdt[IDT_ENTRIES];
|
||||||
|
|
||||||
|
/* Initial TSS */
|
||||||
|
EXTERN KTSS ArInitialTss;
|
||||||
|
|
||||||
|
#endif /* __XTOSKRNL_I686_GLOBALS_H */
|
Loading…
Reference in New Issue
Block a user