aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-02-02 11:02:02 +0000
committerPalmer Dabbelt <[email protected]>2020-02-18 18:34:04 +0000
commit6a1ce99dc4bde564e4a072936f9d41f4a439140e (patch)
treeb3276a7e054211e946d56879c7245412ebfca492 /net/unix/af_unix.c
parentriscv: set pmp configuration if kernel is running in M-mode (diff)
downloadkernel-6a1ce99dc4bde564e4a072936f9d41f4a439140e.tar.gz
kernel-6a1ce99dc4bde564e4a072936f9d41f4a439140e.zip
RISC-V: Don't enable all interrupts in trap_init()
Historically, we have been enabling all interrupts for each HART in trap_init(). Ideally, we should only enable M-mode interrupts for M-mode kernel and S-mode interrupts for S-mode kernel in trap_init(). Currently, we get suprious S-mode interrupts on Kendryte K210 board running M-mode NO-MMU kernel because we are enabling all interrupts in trap_init(). To fix this, we only enable software and external interrupt in trap_init(). In future, trap_init() will only enable software interrupt and PLIC driver will enable external interrupt using CPU notifiers. Fixes: a4c3733d32a7 ("riscv: abstract out CSR names for supervisor vs machine mode") Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Tested-by: Palmer Dabbelt <[email protected]> [QMEU virt machine with SMP] [Palmer: Move the Fixes up to a newer commit] Reviewed-by: Palmer Dabbelt <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions