From 2c5a5d709376a157f8c5eb90a548d9e91f772512 Mon Sep 17 00:00:00 2001 From: josh Date: Fri, 24 Jul 2009 17:05:11 +0000 Subject: [PATCH] moved gdtr_t definition from mm.h to hos_types.h git-svn-id: svn://anubis/hos/trunk@68 5b3e749e-e535-0410-8002-a9bb6afbdfca --- kernel/include/hos_types.h | 8 ++++++++ kernel/mm/mm.h | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/kernel/include/hos_types.h b/kernel/include/hos_types.h index 5921615..9048d78 100644 --- a/kernel/include/hos_types.h +++ b/kernel/include/hos_types.h @@ -40,6 +40,14 @@ typedef struct u32_t ss; } int_stack_t; +typedef struct +{ + u16_t length; + u32_t phys_addr; +} __attribute__ ((packed)) gdtr_t; + +typedef gdtr_t idtr_t; + #ifdef __cplusplus } #endif diff --git a/kernel/mm/mm.h b/kernel/mm/mm.h index 1562d32..cd6af87 100644 --- a/kernel/mm/mm.h +++ b/kernel/mm/mm.h @@ -29,12 +29,6 @@ int mm_map(u32_t virtual_address, u32_t physical_address, u32_t mm_early_page_alloc(); u32_t mm_page_alloc(); -typedef struct -{ - u16_t length; - u32_t phys_addr; -} __attribute__ ((packed)) gdtr_t; - #define set_cr3(address) \ __asm__ __volatile__ ("movl %0, %%cr3" : : "r" (address));