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
feat: closedir(2)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
pmm.c
diff --git
a/lunaix-os/kernel/mm/pmm.c
b/lunaix-os/kernel/mm/pmm.c
index 91f5460ab175680273ccb5e8082ce979dcc09188..3ebe22a10d34fdcec5446283534a1e10e4ca0051 100644
(file)
--- a/
lunaix-os/kernel/mm/pmm.c
+++ b/
lunaix-os/kernel/mm/pmm.c
@@
-30,7
+30,7
@@
pmm_mark_chunk_free(uintptr_t start_ppn, size_t page_count)
void
pmm_mark_chunk_occupied(pid_t owner,
void
pmm_mark_chunk_occupied(pid_t owner,
- u
int
32_t start_ppn,
+ u32_t start_ppn,
size_t page_count,
pp_attr_t attr)
{
size_t page_count,
pp_attr_t attr)
{
@@
-140,7
+140,7
@@
pmm_ref_page(pid_t owner, void* page)
{
(void*)owner; // TODO: do smth with owner
{
(void*)owner; // TODO: do smth with owner
- u
int
32_t ppn = (uintptr_t)page >> 12;
+ u32_t ppn = (uintptr_t)page >> 12;
if (ppn >= PM_BMP_MAX_SIZE) {
return 0;
if (ppn >= PM_BMP_MAX_SIZE) {
return 0;
@@
-158,7
+158,7
@@
pmm_ref_page(pid_t owner, void* page)
struct pp_struct*
pmm_query(void* pa)
{
struct pp_struct*
pmm_query(void* pa)
{
- u
int
32_t ppn = (uintptr_t)pa >> 12;
+ u32_t ppn = (uintptr_t)pa >> 12;
if (ppn >= PM_BMP_MAX_SIZE) {
return NULL;
if (ppn >= PM_BMP_MAX_SIZE) {
return NULL;