kill variable stack allocation

This commit is contained in:
christos 2017-02-10 04:00:48 +00:00
parent e87e25be9f
commit 74761b40ce
1 changed files with 6 additions and 3 deletions

View File

@ -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 @@ mach_init(int argc, int32_t argv32[], uintptr_t magic, int32_t bip32)
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];