git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: fix almost *ALL* warnings.
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
mm
/
page.h
diff --git
a/lunaix-os/includes/lunaix/mm/page.h
b/lunaix-os/includes/lunaix/mm/page.h
index 959477f50ac29561c524446f02978e4ee9dc214a..099bf13094fe982a5f47bdb0f412aca2bb1a09ae 100644
(file)
--- a/
lunaix-os/includes/lunaix/mm/page.h
+++ b/
lunaix-os/includes/lunaix/mm/page.h
@@
-86,7
+86,7
@@
typedef struct
// 物理页地址(如果不存在映射,则为0)
ptr_t pa;
// 映射的flags
// 物理页地址(如果不存在映射,则为0)
ptr_t pa;
// 映射的flags
- u
int
16_t flags;
+ u16_t flags;
// PTE地址
x86_pte_t* pte;
} v_mapping;
// PTE地址
x86_pte_t* pte;
} v_mapping;
@@
-94,7
+94,7
@@
typedef struct
typedef struct
{
x86_pte_t entry[PG_MAX_ENTRIES];
typedef struct
{
x86_pte_t entry[PG_MAX_ENTRIES];
-} __attribute__((packed)) x86_page_table;
+} __attribute__((packed
, aligned(4)
)) x86_page_table;
extern void __pg_mount_point;
extern void __pg_mount_point;