Module Name: src Committed By: skrll Date: Tue Oct 5 07:05:40 UTC 2021
Modified Files: src/sys/arch/riscv/include: locore.h Log Message: Fix riscv32 GENERIC build To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/riscv/include/locore.h 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/include/locore.h diff -u src/sys/arch/riscv/include/locore.h:1.8 src/sys/arch/riscv/include/locore.h:1.9 --- src/sys/arch/riscv/include/locore.h:1.8 Sat May 1 06:53:08 2021 +++ src/sys/arch/riscv/include/locore.h Tue Oct 5 07:05:40 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.h,v 1.8 2021/05/01 06:53:08 skrll Exp $ */ +/* $NetBSD: locore.h,v 1.9 2021/10/05 07:05:40 skrll Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -78,6 +78,7 @@ struct trapframe { #define tf_t6 tf_reg[_X_T6] }; +#ifdef _LP64 // For COMPAT_NETBSD32 coredumps struct trapframe32 { struct reg32 tf_regs; @@ -85,6 +86,7 @@ struct trapframe32 { register32_t tf_cause; register32_t tf_sr; }; +#endif #define FB_A0 0 #define FB_RA 1