Module Name: src Committed By: simonb Date: Thu Nov 17 13:11:08 UTC 2022
Modified Files: src/sys/arch/riscv/riscv: riscv_machdep.c Log Message: Use updated defines for the user-mode sstatus value. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/riscv/riscv/riscv_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/riscv/riscv/riscv_machdep.c diff -u src/sys/arch/riscv/riscv/riscv_machdep.c:1.24 src/sys/arch/riscv/riscv/riscv_machdep.c:1.25 --- src/sys/arch/riscv/riscv/riscv_machdep.c:1.24 Tue Nov 15 14:33:33 2022 +++ src/sys/arch/riscv/riscv/riscv_machdep.c Thu Nov 17 13:11:08 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: riscv_machdep.c,v 1.24 2022/11/15 14:33:33 simonb Exp $ */ +/* $NetBSD: riscv_machdep.c,v 1.25 2022/11/17 13:11:08 simonb Exp $ */ /*- * Copyright (c) 2014, 2019, 2022 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #include "opt_riscv_debug.h" #include <sys/cdefs.h> -__RCSID("$NetBSD: riscv_machdep.c,v 1.24 2022/11/15 14:33:33 simonb Exp $"); +__RCSID("$NetBSD: riscv_machdep.c,v 1.25 2022/11/17 13:11:08 simonb Exp $"); #include <sys/param.h> @@ -156,7 +156,7 @@ setregs(struct lwp *l, struct exec_packa tf->tf_sp = (intptr_t)stack_align(stack); tf->tf_pc = (intptr_t)pack->ep_entry & ~1; #ifdef _LP64 - tf->tf_sr = (p->p_flag & PK_32) ? SR_USER32 : SR_USER; + tf->tf_sr = (p->p_flag & PK_32) ? SR_USER32 : SR_USER64; #else tf->tf_sr = SR_USER; #endif