Module Name: src
Committed By: rin
Date: Thu Oct 15 23:10:06 UTC 2020
Modified Files:
src/sys/arch/aarch64/aarch64: netbsd32_machdep.c
Log Message:
Call netbsd32_adjust_limits() in netbsd32_setregs() for sure,
as done for amd64 and sparc64.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/aarch64/aarch64/netbsd32_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/aarch64/aarch64/netbsd32_machdep.c
diff -u src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.15 src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.16
--- src/sys/arch/aarch64/aarch64/netbsd32_machdep.c:1.15 Thu Oct 15 22:41:02 2020
+++ src/sys/arch/aarch64/aarch64/netbsd32_machdep.c Thu Oct 15 23:10:06 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.15 2020/10/15 22:41:02 rin Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.16 2020/10/15 23:10:06 rin Exp $ */
/*
* Copyright (c) 2018 Ryo Shimizu <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.15 2020/10/15 22:41:02 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.16 2020/10/15 23:10:06 rin Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -64,6 +64,8 @@ netbsd32_setregs(struct lwp *l, struct e
struct proc * const p = l->l_proc;
struct trapframe * const tf = l->l_md.md_utf;
+ netbsd32_adjust_limits(p);
+
aarch64_setregs_ptrauth(l, false);
p->p_flag |= PK_32;