mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add GNU equivalent to getpagesize
This commit is contained in:
parent
c135e39637
commit
1692eb0e60
1 changed files with 8 additions and 0 deletions
|
@ -98,6 +98,14 @@ size_t virt_to_phys(size_t addr)
|
|||
return phy | off;
|
||||
}
|
||||
|
||||
/*
|
||||
* get memory page size
|
||||
*/
|
||||
int getpagesize(void)
|
||||
{
|
||||
return PAGE_SIZE;
|
||||
}
|
||||
|
||||
//TODO: code is missing
|
||||
int page_set_flags(size_t viraddr, uint32_t npages, int flags)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue