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
Code-base clean-up and refactoring (#47)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
region.c
diff --git
a/lunaix-os/kernel/mm/region.c
b/lunaix-os/kernel/mm/region.c
index 14cada1525278887758353186465152c759f4006..8e9b5c7fa105d9625fce2a4914e2ddee2f4ee24e 100644
(file)
--- a/
lunaix-os/kernel/mm/region.c
+++ b/
lunaix-os/kernel/mm/region.c
@@
-3,7
+3,7
@@
#include <lunaix/spike.h>
#include <lunaix/process.h>
#include <lunaix/spike.h>
#include <lunaix/process.h>
-#include <
sys/m
m/mempart.h>
+#include <
as
m/mempart.h>
#include <klibc/string.h>
#include <klibc/string.h>
@@
-26,7
+26,7
@@
region_create_range(ptr_t start, size_t length, u32_t attr)
struct mm_region* region = valloc(sizeof(struct mm_region));
*region = (struct mm_region){ .attr = attr,
.start = start,
struct mm_region* region = valloc(sizeof(struct mm_region));
*region = (struct mm_region){ .attr = attr,
.start = start,
- .end = ROUNDUP(start + length,
MEM_PAG
E) };
+ .end = ROUNDUP(start + length,
PAGE_SIZ
E) };
return region;
}
return region;
}