Make previous conditional upon !__i386__ && !__x86_64__. I know this is
gross but it's a debug check that's not intended to live very long. curlwp is about to become a function on x86 (and so can't be assigned to).
This commit is contained in:
parent
7dcbb17115
commit
19e070934b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init_main.c,v 1.316 2007/09/25 21:41:59 ad Exp $ */
|
||||
/* $NetBSD: init_main.c,v 1.317 2007/09/25 22:33:59 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.316 2007/09/25 21:41:59 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.317 2007/09/25 22:33:59 ad Exp $");
|
||||
|
||||
#include "opt_ipsec.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -271,12 +271,17 @@ main(void)
|
|||
l->l_proc = &proc0;
|
||||
l->l_lid = 1;
|
||||
|
||||
/* XXX Remove before NetBSD 5.0 release */
|
||||
/*
|
||||
* XXX This is a temporary check to be removed before
|
||||
* NetBSD 5.0 is released.
|
||||
*/
|
||||
#if !defined(__i386__ ) && !defined(__x86_64__)
|
||||
if (curlwp != l) {
|
||||
printf("NOTICE: curlwp should be set before main()\n");
|
||||
DELAY(250000);
|
||||
curlwp = l;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Attempt to find console and initialize
|
||||
|
|
Loading…
Reference in New Issue