Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips/sgimips kill variable stack allocation
details: https://anonhg.NetBSD.org/src/rev/f91bc96386c7
branches: trunk
changeset: 351334:f91bc96386c7
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 10 04:00:48 2017 +0000
description:
kill variable stack allocation
diffstat:
sys/arch/sgimips/sgimips/machdep.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 39b97eeb19ef -r f91bc96386c7 sys/arch/sgimips/sgimips/machdep.c
--- a/sys/arch/sgimips/sgimips/machdep.c Fri Feb 10 03:59:02 2017 +0000
+++ b/sys/arch/sgimips/sgimips/machdep.c Fri Feb 10 04:00:48 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.143 2016/12/22 14:47:59 cherry Exp $ */
+/* $NetBSD: machdep.c,v 1.144 2017/02/10 04:00:48 christos Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.143 2016/12/22 14:47:59 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.144 2017/02/10 04:00:48 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -255,7 +255,10 @@
struct btinfo_symtab *bi_syms;
#endif
#ifdef _LP64
- char *argv[argc+1];
+ char *argv[20];
+
+ if (argc >= __arraycount(argv))
+ panic("too many args");
for (i = 0; i < argc; i++) {
argv[i] = (void *)(intptr_t)argv32[i];
Home |
Main Index |
Thread Index |
Old Index