Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Call netbsd32_adjust_limits() in ne...



details:   https://anonhg.NetBSD.org/src/rev/460a3e0ce8f6
branches:  trunk
changeset: 1015153:460a3e0ce8f6
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Oct 15 23:10:06 2020 +0000

description:
Call netbsd32_adjust_limits() in netbsd32_setregs() for sure,
as done for amd64 and sparc64.

diffstat:

 sys/arch/aarch64/aarch64/netbsd32_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 96e8f5761728 -r 460a3e0ce8f6 sys/arch/aarch64/aarch64/netbsd32_machdep.c
--- a/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Thu Oct 15 23:06:06 2020 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep.c       Thu Oct 15 23:10:06 2020 +0000
@@ -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 <ryo%nerv.org@localhost>
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index