diff options
| author | mhitch <mhitch@NetBSD.org> | 2007-06-05 04:52:07 +0000 |
|---|---|---|
| committer | mhitch <mhitch@NetBSD.org> | 2007-06-05 04:52:07 +0000 |
| commit | bbb24892dde752216bbccdc9d063ff036c20a697 (patch) | |
| tree | 13e5457fb6eaa60eda98b50a9631f3e79a9f594d /sys | |
| parent | f8884f1979ff1e8faf4d233444f2f954a5a14cbe (diff) | |
Page table sizes depend on pagesize - fix M68K_MAX_PTSIZE to account for
pagesize. M68K_MAX_KPTSIZE also dependent on pagesize, and was 1/4 the
maximum size of a user pagetable.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/m68k/include/pte_motorola.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m68k/include/pte_motorola.h b/sys/arch/m68k/include/pte_motorola.h index 3a9e7171025..28031095d08 100644 --- a/sys/arch/m68k/include/pte_motorola.h +++ b/sys/arch/m68k/include/pte_motorola.h @@ -1,4 +1,4 @@ -/* $NetBSD: pte_motorola.h,v 1.3 2005/12/11 12:17:53 christos Exp $ */ +/* $NetBSD: pte_motorola.h,v 1.4 2007/06/05 04:52:07 mhitch Exp $ */ /* * Copyright (c) 1982, 1986, 1990, 1993 @@ -142,8 +142,8 @@ typedef int pt_entry_t; /* page table entry */ #define M68K_STSIZE (MAXUL2SIZE * SG4_LEV2SIZE * sizeof(st_entry_t)) /* user process segment table size */ -#define M68K_MAX_PTSIZE 0x400000 /* max size of UPT */ -#define M68K_MAX_KPTSIZE 0x100000 /* max memory to allocate to KPT */ +#define M68K_MAX_PTSIZE (1 << (32 - PG_SHIFT + 2)) /* max size of UPT */ +#define M68K_MAX_KPTSIZE (M68K_MAX_PTSIZE >> 2) /* max memory to allocate to KPT */ #define M68K_PTBASE 0x10000000 /* UPT map base address */ #define M68K_PTMAXSIZE 0x70000000 /* UPT map maximum size */ |
