Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/riscv/riscv Use updated defines for the user-mode s...



details:   https://anonhg.NetBSD.org/src/rev/ec4fe295859e
branches:  trunk
changeset: 372356:ec4fe295859e
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Nov 17 13:11:08 2022 +0000

description:
Use updated defines for the user-mode sstatus value.

diffstat:

 sys/arch/riscv/riscv/riscv_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed2a03af8c8a -r ec4fe295859e sys/arch/riscv/riscv/riscv_machdep.c
--- a/sys/arch/riscv/riscv/riscv_machdep.c      Thu Nov 17 13:10:42 2022 +0000
+++ b/sys/arch/riscv/riscv/riscv_machdep.c      Thu Nov 17 13:11:08 2022 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index