Changeset 295ee02 in mainline
- Timestamp:
- 2017-08-22T18:41:26Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 83b7f4d
- Parents:
- bb3ba51
- Location:
- kernel/arch/riscv64
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/riscv64/include/arch/asm.h
rbb3ba51 r295ee02 36 36 #define KERN_riscv64_ASM_H_ 37 37 38 #include <arch/cpu.h> 38 39 #include <typedefs.h> 39 40 #include <config.h> 40 41 #include <arch/mm/asid.h> 41 42 #include <trace.h> 42 43 #define SSTATUS_SIE_MASK 0x0000000244 43 45 44 NO_TRACE static inline ipl_t interrupts_enable(void) -
kernel/arch/riscv64/include/arch/cpu.h
rbb3ba51 r295ee02 36 36 #define KERN_riscv64_CPU_H_ 37 37 38 #define SSTATUS_SIE_MASK 0x00000002 39 40 #define SATP_PFN_MASK UINT64_C(0x00000fffffffffff) 41 42 #define SATP_MODE_MASK UINT64_C(0xf000000000000000) 43 #define SATP_MODE_BARE UINT64_C(0x0000000000000000) 44 #define SATP_MODE_SV39 UINT64_C(0x8000000000000000) 45 #define SATP_MODE_SV48 UINT64_C(0x9000000000000000) 46 38 47 #ifndef __ASM__ 39 48 -
kernel/arch/riscv64/src/boot/boot.S
rbb3ba51 r295ee02 29 29 #include <abi/asmtool.h> 30 30 #include <arch/boot/boot.h> 31 #include <arch/cpu.h> 31 32 32 33 .section K_TEXT_START, "ax" … … 46 47 47 48 /* Not reached */ 48 /* FIXME: Disable interrupts */49 csrci sstatus, SSTATUS_SIE_MASK 49 50 hlt0: 50 51 wfi -
kernel/arch/riscv64/src/mm/page.c
rbb3ba51 r295ee02 36 36 #include <genarch/mm/page_pt.h> 37 37 #include <arch/mm/frame.h> 38 #include <arch/cpu.h> 38 39 #include <mm/frame.h> 39 40 #include <mm/page.h> … … 47 48 #include <print.h> 48 49 #include <interrupt.h> 49 50 #define SATP_PFN_MASK UINT64_C(0x00000fffffffffff)51 52 #define SATP_MODE_MASK UINT64_C(0xf000000000000000)53 #define SATP_MODE_BARE UINT64_C(0x0000000000000000)54 #define SATP_MODE_SV39 UINT64_C(0x8000000000000000)55 #define SATP_MODE_SV48 UINT64_C(0x9000000000000000)56 50 57 51 void page_arch_init(void)
Note:
See TracChangeset
for help on using the changeset viewer.