mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
vm: removed c_page_size, it cannot be used by globals
This commit is contained in:
parent
57e7cee84e
commit
2ebf257f84
6 changed files with 24 additions and 27 deletions
|
@ -15,12 +15,12 @@ namespace utils
|
|||
*/
|
||||
static inline u32 page_start(u32 addr)
|
||||
{
|
||||
return addr & ~(c_page_size - 1);
|
||||
return addr & ~(get_page_size() - 1);
|
||||
}
|
||||
|
||||
static inline u32 next_page(u32 addr)
|
||||
{
|
||||
return page_start(addr) + c_page_size;
|
||||
return page_start(addr) + get_page_size();
|
||||
}
|
||||
|
||||
static inline u32 page_end(u32 addr)
|
||||
|
@ -30,7 +30,7 @@ namespace utils
|
|||
|
||||
static inline u32 is_page_aligned(u32 val)
|
||||
{
|
||||
return (val & (c_page_size - 1)) == 0;
|
||||
return (val & (get_page_size() - 1)) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue