Ignore:
Timestamp:
2017-08-22T18:41:26Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
83b7f4d
Parents:
bb3ba51
Message:

riscv64: disable interrupts when halting the CPU
move all CPU-related control constants to arch/cpu.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/riscv64/include/arch/cpu.h

    rbb3ba51 r295ee02  
    3636#define KERN_riscv64_CPU_H_
    3737
     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
    3847#ifndef __ASM__
    3948
Note: See TracChangeset for help on using the changeset viewer.