Allow this to compile if NZSC is 0.
This commit is contained in:
parent
3018f8d67b
commit
f41bf819c2
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pmap_bootstrap.c,v 1.48 1998/12/22 08:47:07 scottr Exp $ */
|
/* $NetBSD: pmap_bootstrap.c,v 1.49 1999/03/27 05:19:34 briggs Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
@ -40,6 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
#include "zsc.h"
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
@ -73,7 +74,9 @@ extern vaddr_t virtual_avail, virtual_end;
|
|||||||
extern vm_size_t mem_size;
|
extern vm_size_t mem_size;
|
||||||
extern int protection_codes[];
|
extern int protection_codes[];
|
||||||
|
|
||||||
|
#if NZSC > 0
|
||||||
extern int zsinited;
|
extern int zsinited;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* These are used to map the RAM:
|
* These are used to map the RAM:
|
||||||
@ -556,7 +559,9 @@ void
|
|||||||
bootstrap_mac68k(tc)
|
bootstrap_mac68k(tc)
|
||||||
int tc;
|
int tc;
|
||||||
{
|
{
|
||||||
|
#if NZSC > 0
|
||||||
extern void zs_init __P((void));
|
extern void zs_init __P((void));
|
||||||
|
#endif
|
||||||
extern int *esym;
|
extern int *esym;
|
||||||
paddr_t nextpa;
|
paddr_t nextpa;
|
||||||
caddr_t oldROMBase;
|
caddr_t oldROMBase;
|
||||||
@ -615,8 +620,10 @@ bootstrap_mac68k(tc)
|
|||||||
* of this function (where we start using the MMU, so the new
|
* of this function (where we start using the MMU, so the new
|
||||||
* address is correct.
|
* address is correct.
|
||||||
*/
|
*/
|
||||||
|
#if NZSC > 0
|
||||||
if (zsinited != 0)
|
if (zsinited != 0)
|
||||||
zs_init();
|
zs_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
videoaddr = newvideoaddr;
|
videoaddr = newvideoaddr;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user