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 part of PR port-arm/54702
details: https://anonhg.NetBSD.org/src/rev/20d7113a9a6c
branches: trunk
changeset: 1005011:20d7113a9a6c
user: rin <rin%NetBSD.org@localhost>
date: Sun Nov 24 11:45:00 2019 +0000
description:
part of PR port-arm/54702
Make sure that md_march32 and ep_machine_arch have same size.
XXX
pullup to netbsd-9
diffstat:
sys/arch/aarch64/aarch64/exec_machdep.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r cffaaaa7b2ea -r 20d7113a9a6c sys/arch/aarch64/aarch64/exec_machdep.c
--- a/sys/arch/aarch64/aarch64/exec_machdep.c Sun Nov 24 11:28:40 2019 +0000
+++ b/sys/arch/aarch64/aarch64/exec_machdep.c Sun Nov 24 11:45:00 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_machdep.c,v 1.5 2019/11/24 04:08:36 rin Exp $ */
+/* $NetBSD: exec_machdep.c,v 1.6 2019/11/24 11:45:00 rin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_machdep.c,v 1.5 2019/11/24 04:08:36 rin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_machdep.c,v 1.6 2019/11/24 11:45:00 rin Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_netbsd32.h"
@@ -86,6 +86,8 @@
/*
* Copy (if any) the machine_arch of the executable to the proc.
*/
+ CTASSERT(sizeof(l->l_proc->p_md.md_march32) ==
+ sizeof(epp->ep_machine_arch));
if (epp->ep_machine_arch[0] != 0)
strlcpy(l->l_proc->p_md.md_march32, epp->ep_machine_arch,
sizeof(l->l_proc->p_md.md_march32));
Home |
Main Index |
Thread Index |
Old Index