Changeset 95c675b in mainline for kernel/arch/riscv64/src/mm/km.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/arch/riscv64/src/mm/km.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/src/mm/km.c
rdbf32b1 r95c675b 32 32 33 33 #include <arch/mm/km.h> 34 #include <mm/km.h> 35 #include <stdbool.h> 34 36 #include <typedefs.h> 37 #include <macros.h> 35 38 36 39 void km_identity_arch_init(void) 37 40 { 41 config.identity_base = KM_RISCV64_IDENTITY_START; 42 config.identity_size = KM_RISCV64_IDENTITY_SIZE; 38 43 } 39 44 40 45 void km_non_identity_arch_init(void) 41 46 { 47 km_non_identity_span_add(KM_RISCV64_NON_IDENTITY_START, 48 KM_RISCV64_NON_IDENTITY_SIZE); 42 49 } 43 50 44 51 bool km_is_non_identity_arch(uintptr_t addr) 45 52 { 46 return false; 53 return iswithin(KM_RISCV64_NON_IDENTITY_START, 54 KM_RISCV64_NON_IDENTITY_SIZE, addr, 1); 47 55 } 48 56
Note:
See TracChangeset
for help on using the changeset viewer.
