Changeset ccc362a1 in mainline for kernel/arch/riscv64/src/mm/km.c
- Timestamp:
- 2017-08-21T18:46:34Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6c742f5e
- Parents:
- c16479e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/src/mm/km.c
rc16479e rccc362a1 32 32 33 33 #include <arch/mm/km.h> 34 #include <mm/km.h> 34 35 #include <stdbool.h> 35 36 #include <typedefs.h> 37 #include <macros.h> 36 38 37 39 void km_identity_arch_init(void) 38 40 { 41 config.identity_base = KM_RISCV64_IDENTITY_START; 42 config.identity_size = KM_RISCV64_IDENTITY_SIZE; 39 43 } 40 44 41 45 void km_non_identity_arch_init(void) 42 46 { 47 km_non_identity_span_add(KM_RISCV64_NON_IDENTITY_START, 48 KM_RISCV64_NON_IDENTITY_SIZE); 43 49 } 44 50 45 51 bool km_is_non_identity_arch(uintptr_t addr) 46 52 { 47 return false; 53 return iswithin(KM_RISCV64_NON_IDENTITY_START, 54 KM_RISCV64_NON_IDENTITY_SIZE, addr, 1); 48 55 } 49 56
Note:
See TracChangeset
for help on using the changeset viewer.