moved gdtr_t definition from mm.h to hos_types.h
git-svn-id: svn://anubis/hos/trunk@68 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
parent
ddd8c9fd71
commit
2c5a5d7093
@ -40,6 +40,14 @@ typedef struct
|
|||||||
u32_t ss;
|
u32_t ss;
|
||||||
} int_stack_t;
|
} int_stack_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
u16_t length;
|
||||||
|
u32_t phys_addr;
|
||||||
|
} __attribute__ ((packed)) gdtr_t;
|
||||||
|
|
||||||
|
typedef gdtr_t idtr_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,12 +29,6 @@ int mm_map(u32_t virtual_address, u32_t physical_address,
|
|||||||
u32_t mm_early_page_alloc();
|
u32_t mm_early_page_alloc();
|
||||||
u32_t mm_page_alloc();
|
u32_t mm_page_alloc();
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
u16_t length;
|
|
||||||
u32_t phys_addr;
|
|
||||||
} __attribute__ ((packed)) gdtr_t;
|
|
||||||
|
|
||||||
#define set_cr3(address) \
|
#define set_cr3(address) \
|
||||||
__asm__ __volatile__ ("movl %0, %%cr3" : : "r" (address));
|
__asm__ __volatile__ ("movl %0, %%cr3" : : "r" (address));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user