Alice Wang | 4dd2093 | 2023-05-26 13:47:16 +0000 | [diff] [blame] | 1 | // Copyright 2023, The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | //! Memory management. |
| 16 | |
| 17 | mod dbm; |
Pierre-Clément Tosi | 3d4c5c3 | 2023-05-31 16:57:06 +0000 | [diff] [blame] | 18 | mod page_table; |
Alice Wang | f47b234 | 2023-06-02 11:51:57 +0000 | [diff] [blame] | 19 | mod shared; |
| 20 | mod util; |
Alice Wang | 4dd2093 | 2023-05-26 13:47:16 +0000 | [diff] [blame] | 21 | |
Alice Wang | b73a81b | 2023-06-07 13:05:09 +0000 | [diff] [blame] | 22 | pub use dbm::{flush_dirty_range, mark_dirty_block, set_dbm_enabled}; |
| 23 | pub use page_table::PageTable; |
| 24 | pub use shared::{mmio_guard_unmap_page, verify_lazy_mapped_block, MemorySharer}; |
Alice Wang | 3fa9b80 | 2023-06-06 07:52:31 +0000 | [diff] [blame] | 25 | pub use util::{ |
| 26 | flush, flushed_zeroize, min_dcache_line_size, page_4kb_of, phys_to_virt, virt_to_phys, |
Alice Wang | 4b3cc11 | 2023-06-06 12:22:53 +0000 | [diff] [blame] | 27 | PAGE_SIZE, SIZE_2MB, SIZE_4KB, SIZE_4MB, |
Alice Wang | 3fa9b80 | 2023-06-06 07:52:31 +0000 | [diff] [blame] | 28 | }; |