-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: Switch riscv64 to the new page table code
Switch riscv64 to the new page table code, and add a few new wrappers and headers (pmd_mkpmd, et al). This commit also fixed fork() breakage that was introduced at some unknown point in time. Signed-off-by: Pedro Falcato <[email protected]>
- Loading branch information
Showing
8 changed files
with
480 additions
and
695 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2024 Pedro Falcato | ||
* This file is part of Onyx, and is released under the terms of the MIT License | ||
* check LICENSE at the root directory for more information | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
#ifndef _ONYX_PGTABLE_NOP4D_H | ||
#define _ONYX_PGTABLE_NOP4D_H | ||
|
||
#define PTRS_PER_P4D 1 | ||
|
||
static inline p4d_t *p4d_offset(pgd_t *pgd, unsigned long addr) | ||
{ | ||
return (p4d_t *) pgd; | ||
} | ||
|
||
static inline bool pgd_none(pgd_t pgd) | ||
{ | ||
return false; | ||
} | ||
|
||
static inline bool pgd_present(pgd_t pgd) | ||
{ | ||
return true; | ||
} | ||
|
||
static inline bool p4d_folded(void) | ||
{ | ||
return true; | ||
} | ||
|
||
#endif |
Oops, something went wrong.