Index: sys/arch/sun68k/stand/libsa/sun2.c =================================================================== RCS file: /home/netbsd/src/sys/arch/sun68k/stand/libsa/sun2.c,v retrieving revision 1.11 diff -p -u -r1.11 sun2.c --- sys/arch/sun68k/stand/libsa/sun2.c 11 Dec 2009 18:42:05 -0000 1.11 +++ sys/arch/sun68k/stand/libsa/sun2.c 15 Mar 2020 02:56:24 -0000 @@ -345,19 +345,18 @@ sun2_getidprom(u_char *dst) * easy road and just add more mappings to use that physical * memory while loading (the PROM might do DMA there). * - * What we do, then, is assume a 4MB machine (you'll really - * need that to run NetBSD at all anyways), and we map two - * chunks of physical and virtual space: + * What we do, then, is assume a 7MB machine, and + * we map two chunks of physical and virtual space: * * 0x400000 - 0x4bffff virtual -> 0x000000 - 0x0bffff physical - * 0x4c0000 - 0x600000 virtual -> 0x2c0000 - 0x3fffff physical + * 0x4a0000 - 0x600000 virtual -> 0x2a0000 - 0x3fffff physical * * And then we load starting at virtual 0x400000. We will do * all of this mapping just by copying PMEGs. * * After the load is done, but before we enter the kernel, we're * done with the PROM, so we copy the part of the kernel that - * got loaded at physical 0x2c0000 down to physical 0x0c0000. + * got loaded at physical 0x2a0000 down to physical 0x0c0000. * This can't just be a PMEG copy; we've actually got to move * bytes in physical memory. * @@ -371,8 +370,8 @@ sun2_getidprom(u_char *dst) #define MEM_CHUNK0_COPY_PHYS MEM_CHUNK0_LOAD_PHYS #define MEM_CHUNK0_COPY_VIRT MEM_CHUNK0_COPY_PHYS -#define MEM_CHUNK1_SIZE (0x140000) -#define MEM_CHUNK1_LOAD_PHYS (0x2c0000) +#define MEM_CHUNK1_SIZE (0x160000) +#define MEM_CHUNK1_LOAD_PHYS (0x2a0000) #define MEM_CHUNK1_LOAD_VIRT (MEM_CHUNK0_LOAD_VIRT + MEM_CHUNK0_SIZE) #define MEM_CHUNK1_LOAD_VIRT_PROM MEM_CHUNK1_LOAD_PHYS #define MEM_CHUNK1_COPY_PHYS (MEM_CHUNK0_LOAD_PHYS + MEM_CHUNK0_SIZE)