diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2009-12-09 12:21:58 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2009-12-09 12:21:58 +0000 |
| commit | d7debedc427eff2c890d7f39cb138b77e46b8551 (patch) | |
| tree | bcfd93ff164274f99ad5f99a5ec12a05f9651738 /sys/arch/atari/include | |
| parent | bf65171399c526211872812f733fd7f000001e17 (diff) | |
Fix wrong NBSEG values for all hp300 pmap derived m68k ports.
They were incorrect since 1997 on amiga and atari, and since 2002
on other ports, but fortunately they don't look so fatal.
Anyway, these values will be moved into <m68k/pmap_motorola.h> soon
since they are quite pmap implementation dependent.
Diffstat (limited to 'sys/arch/atari/include')
| -rw-r--r-- | sys/arch/atari/include/param.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/atari/include/param.h b/sys/arch/atari/include/param.h index 2a1e4edd76f..a122fc07b6b 100644 --- a/sys/arch/atari/include/param.h +++ b/sys/arch/atari/include/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.31 2008/01/03 01:02:04 joerg Exp $ */ +/* $NetBSD: param.h,v 1.32 2009/12/09 12:21:58 tsutsui Exp $ */ /* * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. @@ -89,10 +89,10 @@ #define KERNBASE 0x00000000 /* start of kernel virtual */ #define SEGSHIFT 24 /* LOG2(NBSEG) [68030 value] */ -/* bytes/segment */ -/* (256 * (1 << PGSHIFT)) == (1 << SEGSHIFT) */ + #define NBSEG ((mmutype == MMU_68040) \ - ? (32 * (1 << PGSHIFT)) : (256 * (1 << PGSHIFT))) + ? (1 << 18 /* SG4_SHIFT2 */) : (1 << SEGSHIFT)) + /* bytes/segment */ #define SEGOFSET (NBSEG-1) /* byte offset into segment */ #define UPAGES 2 /* pages of u-area */ |
