Define BASE_ISA macro for ISA window base address (where pckbc, com, lpt live)
instead of hardcoding the constant or (even before) using BASE_COM.
This commit is contained in:
parent
dbdbfa2c22
commit
6920dbe4f2
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.14 2006/10/16 18:14:36 kiyohara Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.15 2006/10/23 06:49:17 kiyohara Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.14 2006/10/16 18:14:36 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2006/10/23 06:49:17 kiyohara Exp $");
|
||||
|
||||
#include "opt_explora.h"
|
||||
#include "ksyms.h"
|
||||
@ -197,7 +197,7 @@ bootstrap(u_int startkernel, u_int endkernel)
|
||||
ppc4xx_tlb_reserve(maddr, maddr, TLB_PG_SIZE, TLB_EX);
|
||||
|
||||
/* Map PCKBC, PCKBC2, COM, LPT. */
|
||||
ppc4xx_tlb_reserve(0x74000000, 0x74000000, TLB_PG_SIZE, TLB_I | TLB_G);
|
||||
ppc4xx_tlb_reserve(BASE_ISA, BASE_ISA, TLB_PG_SIZE, TLB_I | TLB_G);
|
||||
|
||||
#ifndef COM_IS_CONSOLE
|
||||
ppc4xx_tlb_reserve(BASE_FB, BASE_FB, TLB_PG_SIZE, TLB_I | TLB_G);
|
||||
|
@ -5,13 +5,14 @@
|
||||
/*
|
||||
* Base addresses of external peripherals
|
||||
*/
|
||||
#define BASE_PCKBC 0x740000c0
|
||||
#define BASE_PCKBC2 0x740000c8
|
||||
#define BASE_COM 0x740005f0
|
||||
#define BASE_LPT 0x740006f0
|
||||
#define BASE_FB 0x70000000
|
||||
#define BASE_FB2 0x71000000
|
||||
#define BASE_LE 0x70800000
|
||||
#define BASE_FB2 0x71000000
|
||||
#define BASE_ISA 0x74000000
|
||||
#define BASE_PCKBC 0x740000c0
|
||||
#define BASE_PCKBC2 0x740000c8
|
||||
#define BASE_COM 0x740005f0
|
||||
#define BASE_LPT 0x740006f0
|
||||
|
||||
#define SIZE_FB (2*1024*1024)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user