paul@189 | 1 | /* |
paul@189 | 2 | * Paging utilities. |
paul@189 | 3 | * |
paul@189 | 4 | * Copyright (C) 2016 Paul Boddie <paul@boddie.org.uk> |
paul@189 | 5 | * |
paul@189 | 6 | * This program is free software: you can redistribute it and/or modify |
paul@189 | 7 | * it under the terms of the GNU General Public License as published by |
paul@189 | 8 | * the Free Software Foundation, either version 3 of the License, or |
paul@189 | 9 | * (at your option) any later version. |
paul@189 | 10 | * |
paul@189 | 11 | * This program is distributed in the hope that it will be useful, |
paul@189 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@189 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@189 | 14 | * GNU General Public License for more details. |
paul@189 | 15 | * |
paul@189 | 16 | * You should have received a copy of the GNU General Public License |
paul@189 | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
paul@189 | 18 | */ |
paul@189 | 19 | |
paul@189 | 20 | #include "paging.h" |
paul@189 | 21 | |
paul@189 | 22 | inline u32 user_address(u32 addr) |
paul@189 | 23 | { |
paul@189 | 24 | return addr & USER_ADDRESS_MASK; |
paul@189 | 25 | } |