Change base address to account for later Alpha models with later firmware which require more space for SRM.diff -r1.366 -r1.367 src/sys/arch/alpha/conf/GENERIC
(jklos)
--- src/sys/arch/alpha/conf/GENERIC 2015/09/26 16:33:16 1.366
+++ src/sys/arch/alpha/conf/GENERIC 2016/01/20 12:49:21 1.367
@@ -1,35 +1,35 @@ | @@ -1,35 +1,35 @@ | |||
1 | # $NetBSD: GENERIC,v 1.366 2015/09/26 16:33:16 maxv Exp $ | 1 | # $NetBSD: GENERIC,v 1.367 2016/01/20 12:49:21 jklos Exp $ | |
2 | # | 2 | # | |
3 | # This machine description file is used to generate the default NetBSD | 3 | # This machine description file is used to generate the default NetBSD | |
4 | # kernel. | 4 | # kernel. | |
5 | # | 5 | # | |
6 | # The machine description file can be customised for your specific | 6 | # The machine description file can be customised for your specific | |
7 | # machine to reduce the kernel size and improve its performance. | 7 | # machine to reduce the kernel size and improve its performance. | |
8 | # | 8 | # | |
9 | # For further information on compiling NetBSD kernels, see the config(8) | 9 | # For further information on compiling NetBSD kernels, see the config(8) | |
10 | # man page. | 10 | # man page. | |
11 | # | 11 | # | |
12 | # For further information on hardware support for this architecture, see | 12 | # For further information on hardware support for this architecture, see | |
13 | # the intro(4) man page. For further information about kernel options | 13 | # the intro(4) man page. For further information about kernel options | |
14 | # for this architecture, see the options(4) man page. For an explanation | 14 | # for this architecture, see the options(4) man page. For an explanation | |
15 | # of each device driver in this file see the section 4 man page for the | 15 | # of each device driver in this file see the section 4 man page for the | |
16 | # device. | 16 | # device. | |
17 | 17 | |||
18 | include "arch/alpha/conf/std.alpha" | 18 | include "arch/alpha/conf/std.alpha" | |
19 | 19 | |||
20 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | 20 | options INCLUDE_CONFIG_FILE # embed config file in kernel binary | |
21 | 21 | |||
22 | ident "GENERIC-$Revision: 1.366 $" | 22 | ident "GENERIC-$Revision: 1.367 $" | |
23 | 23 | |||
24 | maxusers 32 | 24 | maxusers 32 | |
25 | 25 | |||
26 | # CPU Support | 26 | # CPU Support | |
27 | options DEC_2000_300 # "Jensen": 2000/300 (DECpc AXP 150) | 27 | options DEC_2000_300 # "Jensen": 2000/300 (DECpc AXP 150) | |
28 | options DEC_2100_A50 # Avanti etc: AlphaStation 400, 200, etc. | 28 | options DEC_2100_A50 # Avanti etc: AlphaStation 400, 200, etc. | |
29 | options DEC_2100_A500 # Sable: AlphaServer 2100 | 29 | options DEC_2100_A500 # Sable: AlphaServer 2100 | |
30 | options DEC_2100A_A500 # Lynx: AlphaServer 2100A | 30 | options DEC_2100A_A500 # Lynx: AlphaServer 2100A | |
31 | options DEC_3000_500 # Flamingo etc: 3000/[4-9]00* | 31 | options DEC_3000_500 # Flamingo etc: 3000/[4-9]00* | |
32 | options DEC_3000_300 # Pelican etc: 3000/300* | 32 | options DEC_3000_300 # Pelican etc: 3000/300* | |
33 | options DEC_AXPPCI_33 # NoName: AXPpci33, Multia, etc. | 33 | options DEC_AXPPCI_33 # NoName: AXPpci33, Multia, etc. | |
34 | options DEC_EB164 # EB164: AlphaPC 164 | 34 | options DEC_EB164 # EB164: AlphaPC 164 | |
35 | options DEC_EB64PLUS # EB64+: AlphaPC 64, etc. | 35 | options DEC_EB64PLUS # EB64+: AlphaPC 64, etc. | |
@@ -391,26 +391,27 @@ opl* at yds? | @@ -391,26 +391,27 @@ opl* at yds? | |||
391 | mpu* at cmpci? | 391 | mpu* at cmpci? | |
392 | mpu* at eso? | 392 | mpu* at eso? | |
393 | mpu* at sb? | 393 | mpu* at sb? | |
394 | mpu* at yds? | 394 | mpu* at yds? | |
395 | 395 | |||
396 | # I2O devices | 396 | # I2O devices | |
397 | iop* at pci? dev ? function ? # I/O processor | 397 | iop* at pci? dev ? function ? # I/O processor | |
398 | iopsp* at iop? tid ? # SCSI/FC-AL ports | 398 | iopsp* at iop? tid ? # SCSI/FC-AL ports | |
399 | ld* at iop? tid ? # block devices | 399 | ld* at iop? tid ? # block devices | |
400 | # XXX dpti.c wants a processor type that is not assigned for x86-64 | 400 | # XXX dpti.c wants a processor type that is not assigned for x86-64 | |
401 | #dpti* at iop? tid 0 # DPT/Adaptec control interface | 401 | #dpti* at iop? tid 0 # DPT/Adaptec control interface | |
402 | 402 | |||
403 | # MII/PHY support | 403 | # MII/PHY support | |
404 | brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs | |||
404 | exphy* at mii? phy ? # 3Com internal PHYs | 405 | exphy* at mii? phy ? # 3Com internal PHYs | |
405 | icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x | 406 | icsphy* at mii? phy ? # Integrated Circuit Systems ICS189x | |
406 | inphy* at mii? phy ? # Intel 82555 PHYs | 407 | inphy* at mii? phy ? # Intel 82555 PHYs | |
407 | iophy* at mii? phy ? # Intel 82553 PHYs | 408 | iophy* at mii? phy ? # Intel 82553 PHYs | |
408 | lxtphy* at mii? phy ? # Level One LXT-970 PHYs | 409 | lxtphy* at mii? phy ? # Level One LXT-970 PHYs | |
409 | gphyter* at mii? phy ? # NS83861 Gig-E PHY | 410 | gphyter* at mii? phy ? # NS83861 Gig-E PHY | |
410 | makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs | 411 | makphy* at mii? phy ? # Marvell Semiconductor 88E1000 PHYs | |
411 | nsphy* at mii? phy ? # NS83840 PHYs | 412 | nsphy* at mii? phy ? # NS83840 PHYs | |
412 | nsphyter* at mii? phy ? # NS83843 PHYs | 413 | nsphyter* at mii? phy ? # NS83843 PHYs | |
413 | qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs | 414 | qsphy* at mii? phy ? # Quality Semiconductor QS6612 PHYs | |
414 | rgephy* at mii? phy ? # Realtek 8169S internal PHYs | 415 | rgephy* at mii? phy ? # Realtek 8169S internal PHYs | |
415 | rlphy* at mii? phy ? # Realtek 8139 PHYs | 416 | rlphy* at mii? phy ? # Realtek 8139 PHYs | |
416 | sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs | 417 | sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs |
--- src/sys/arch/alpha/conf/Makefile.alpha 2013/03/10 07:18:20 1.83
+++ src/sys/arch/alpha/conf/Makefile.alpha 2016/01/20 12:49:21 1.84
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.alpha,v 1.83 2013/03/10 07:18:20 christos Exp $ | 1 | # $NetBSD: Makefile.alpha,v 1.84 2016/01/20 12:49:21 jklos Exp $ | |
2 | 2 | |||
3 | # Makefile for NetBSD | 3 | # Makefile for NetBSD | |
4 | # | 4 | # | |
5 | # This makefile is constructed from a machine description: | 5 | # This makefile is constructed from a machine description: | |
6 | # config machineid | 6 | # config machineid | |
7 | # Most changes should be made in the machine description | 7 | # Most changes should be made in the machine description | |
8 | # /sys/arch/alpha/conf/``machineid'' | 8 | # /sys/arch/alpha/conf/``machineid'' | |
9 | # after which you should do | 9 | # after which you should do | |
10 | # config machineid | 10 | # config machineid | |
11 | # Machine generic makefile changes should be made in | 11 | # Machine generic makefile changes should be made in | |
12 | # /sys/arch/alpha/conf/Makefile.alpha | 12 | # /sys/arch/alpha/conf/Makefile.alpha | |
13 | # after which config should be rerun for all machines of that type. | 13 | # after which config should be rerun for all machines of that type. | |
14 | # | 14 | # | |
@@ -57,27 +57,27 @@ MD_SFILES= ${ALPHA}/alpha/locore.s ${ALP | @@ -57,27 +57,27 @@ MD_SFILES= ${ALPHA}/alpha/locore.s ${ALP | |||
57 | 57 | |||
58 | locore.o: ${ALPHA}/alpha/locore.s assym.h | 58 | locore.o: ${ALPHA}/alpha/locore.s assym.h | |
59 | ${NORMAL_S} | 59 | ${NORMAL_S} | |
60 | 60 | |||
61 | transfer.o: ${ALPHA}/alpha/transfer.s | 61 | transfer.o: ${ALPHA}/alpha/transfer.s | |
62 | ${NORMAL_S} | 62 | ${NORMAL_S} | |
63 | 63 | |||
64 | lock_stubs.o: assym.h | 64 | lock_stubs.o: assym.h | |
65 | 65 | |||
66 | ## | 66 | ## | |
67 | ## (5) link settings | 67 | ## (5) link settings | |
68 | ## | 68 | ## | |
69 | LINKFORMAT= -N | 69 | LINKFORMAT= -N | |
70 | TEXTADDR?= fffffc0000430000 | 70 | TEXTADDR?= fffffc0000a00000 | |
71 | ENTRYPOINT= __transfer | 71 | ENTRYPOINT= __transfer | |
72 | EXTRA_LINKFLAGS= -G 4 | 72 | EXTRA_LINKFLAGS= -G 4 | |
73 | STRIPFLAGS= -g -X | 73 | STRIPFLAGS= -g -X | |
74 | 74 | |||
75 | ## | 75 | ## | |
76 | ## (6) port specific target dependencies | 76 | ## (6) port specific target dependencies | |
77 | ## | 77 | ## | |
78 | 78 | |||
79 | # depend on CPU configuration | 79 | # depend on CPU configuration | |
80 | clock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile | 80 | clock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile | |
81 | 81 | |||
82 | ## | 82 | ## | |
83 | ## (7) misc settings | 83 | ## (7) misc settings |
--- src/sys/arch/alpha/include/param.h 2013/01/14 10:46:14 1.43
+++ src/sys/arch/alpha/include/param.h 2016/01/20 12:49:21 1.44
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: param.h,v 1.43 2013/01/14 10:46:14 he Exp $ */ | 1 | /* $NetBSD: param.h,v 1.44 2016/01/20 12:49:21 jklos Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1988 University of Utah. | 4 | * Copyright (c) 1988 University of Utah. | |
5 | * Copyright (c) 1992, 1993 | 5 | * Copyright (c) 1992, 1993 | |
6 | * The Regents of the University of California. All rights reserved. | 6 | * The Regents of the University of California. All rights reserved. | |
7 | * | 7 | * | |
8 | * This code is derived from software contributed to Berkeley by | 8 | * This code is derived from software contributed to Berkeley by | |
9 | * the Systems Programming Group of the University of Utah Computer | 9 | * the Systems Programming Group of the University of Utah Computer | |
10 | * Science Department and Ralph Campbell. | 10 | * Science Department and Ralph Campbell. | |
11 | * | 11 | * | |
12 | * Redistribution and use in source and binary forms, with or without | 12 | * Redistribution and use in source and binary forms, with or without | |
13 | * modification, are permitted provided that the following conditions | 13 | * modification, are permitted provided that the following conditions | |
14 | * are met: | 14 | * are met: | |
@@ -47,27 +47,27 @@ | @@ -47,27 +47,27 @@ | |||
47 | #define MACHINE_ARCH "alpha" | 47 | #define MACHINE_ARCH "alpha" | |
48 | #define MID_MACHINE MID_ALPHA | 48 | #define MID_MACHINE MID_ALPHA | |
49 | 49 | |||
50 | #ifdef _KERNEL | 50 | #ifdef _KERNEL | |
51 | #include <machine/cpu.h> | 51 | #include <machine/cpu.h> | |
52 | #else | 52 | #else | |
53 | #define ALPHA_PGSHIFT 13 | 53 | #define ALPHA_PGSHIFT 13 | |
54 | #endif | 54 | #endif | |
55 | 55 | |||
56 | #define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */ | 56 | #define NBPG (1 << ALPHA_PGSHIFT) /* bytes/page */ | |
57 | #define PGOFSET (NBPG-1) /* byte off. into pg */ | 57 | #define PGOFSET (NBPG-1) /* byte off. into pg */ | |
58 | #define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */ | 58 | #define PGSHIFT ALPHA_PGSHIFT /* LOG2(NBPG) */ | |
59 | 59 | |||
60 | #define KERNBASE 0xfffffc0000230000 /* start of kernel virtual */ | 60 | #define KERNBASE 0xfffffc0000a00000 /* start of kernel virtual */ | |
61 | #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) | 61 | #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT) | |
62 | 62 | |||
63 | #define DEV_BSIZE 512 | 63 | #define DEV_BSIZE 512 | |
64 | #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ | 64 | #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ | |
65 | #define BLKDEV_IOSIZE 2048 | 65 | #define BLKDEV_IOSIZE 2048 | |
66 | #ifndef MAXPHYS | 66 | #ifndef MAXPHYS | |
67 | #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ | 67 | #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */ | |
68 | #endif | 68 | #endif | |
69 | 69 | |||
70 | #define SSIZE 1 /* initial stack size/NBPG */ | 70 | #define SSIZE 1 /* initial stack size/NBPG */ | |
71 | #define SINCR 1 /* increment of stack/NBPG */ | 71 | #define SINCR 1 /* increment of stack/NBPG */ | |
72 | 72 | |||
73 | #define UPAGES 2 /* pages of u-area */ | 73 | #define UPAGES 2 /* pages of u-area */ |
--- src/sys/arch/alpha/stand/Makefile.bootprogs 2014/01/16 01:15:33 1.34
+++ src/sys/arch/alpha/stand/Makefile.bootprogs 2016/01/20 12:49:21 1.35
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.bootprogs,v 1.34 2014/01/16 01:15:33 christos Exp $ | 1 | # $NetBSD: Makefile.bootprogs,v 1.35 2016/01/20 12:49:21 jklos Exp $ | |
2 | 2 | |||
3 | NOMAN= # defined | 3 | NOMAN= # defined | |
4 | 4 | |||
5 | .include <bsd.own.mk> | 5 | .include <bsd.own.mk> | |
6 | 6 | |||
7 | S= ${.CURDIR}/../../../.. | 7 | S= ${.CURDIR}/../../../.. | |
8 | 8 | |||
9 | .PATH: ${.CURDIR}/../common | 9 | .PATH: ${.CURDIR}/../common | |
10 | 10 | |||
11 | BINMODE= 444 | 11 | BINMODE= 444 | |
12 | 12 | |||
13 | STRIP?= strip | 13 | STRIP?= strip | |
14 | 14 | |||
@@ -79,29 +79,29 @@ PRIMARY_MAX_TOTAL!= expr 16 \* 1024 | @@ -79,29 +79,29 @@ PRIMARY_MAX_TOTAL!= expr 16 \* 1024 | |||
79 | # XXX (${PRIMARY_LOAD_ADDRESS} + ${PRIMARY_MAX_TOTAL}) bt there's no easy | 79 | # XXX (${PRIMARY_LOAD_ADDRESS} + ${PRIMARY_MAX_TOTAL}) bt there's no easy | |
80 | # XXX way to do that calculation and 'ld' wants a single number. | 80 | # XXX way to do that calculation and 'ld' wants a single number. | |
81 | SECONDARY_LOAD_ADDRESS= 0x20004000 # XXX | 81 | SECONDARY_LOAD_ADDRESS= 0x20004000 # XXX | |
82 | SECONDARY_MAX_LOAD!= expr 112 \* 1024 | 82 | SECONDARY_MAX_LOAD!= expr 112 \* 1024 | |
83 | SECONDARY_MAX_TOTAL!= expr ${REGION1_SIZE} - ${PRIMARY_MAX_TOTAL} | 83 | SECONDARY_MAX_TOTAL!= expr ${REGION1_SIZE} - ${PRIMARY_MAX_TOTAL} | |
84 | 84 | |||
85 | PRIMARY_HEAP_START= (${SECONDARY_LOAD_ADDRESS} + ${SECONDARY_MAX_LOAD}) | 85 | PRIMARY_HEAP_START= (${SECONDARY_LOAD_ADDRESS} + ${SECONDARY_MAX_LOAD}) | |
86 | PRIMARY_HEAP_LIMIT= (${REGION1_START} + ${REGION1_SIZE}) | 86 | PRIMARY_HEAP_LIMIT= (${REGION1_START} + ${REGION1_SIZE}) | |
87 | 87 | |||
88 | #SECONDARY_HEAP_START= right after secondary bss | 88 | #SECONDARY_HEAP_START= right after secondary bss | |
89 | SECONDARY_HEAP_LIMIT= (${REGION1_START} + ${REGION1_SIZE}) | 89 | SECONDARY_HEAP_LIMIT= (${REGION1_START} + ${REGION1_SIZE}) | |
90 | 90 | |||
91 | # standalone programs are like kernels. They load at | 91 | # standalone programs are like kernels. They load at | |
92 | # 0xfffffc0000300000 and can use the rest of memory. | 92 | # 0xfffffc0000800000 and can use the rest of memory. | |
93 | 93 | |||
94 | STANDPROG_LOAD_ADDRESS= 0xfffffc0000300000 | 94 | STANDPROG_LOAD_ADDRESS= 0xfffffc0000800000 | |
95 | 95 | |||
96 | 96 | |||
97 | FILE_FORMAT_CPPFLAGS= -DBOOT_ECOFF -DBOOT_ELF64 | 97 | FILE_FORMAT_CPPFLAGS= -DBOOT_ECOFF -DBOOT_ELF64 | |
98 | 98 | |||
99 | UNIFIED_CPPFLAGS= -DUNIFIED_BOOTBLOCK \ | 99 | UNIFIED_CPPFLAGS= -DUNIFIED_BOOTBLOCK \ | |
100 | -DHEAP_LIMIT="${UNIFIED_HEAP_LIMIT}" \ | 100 | -DHEAP_LIMIT="${UNIFIED_HEAP_LIMIT}" \ | |
101 | ${FILE_FORMAT_CPPFLAGS} | 101 | ${FILE_FORMAT_CPPFLAGS} | |
102 | 102 | |||
103 | PRIMARY_CPPFLAGS= -DPRIMARY_BOOTBLOCK \ | 103 | PRIMARY_CPPFLAGS= -DPRIMARY_BOOTBLOCK \ | |
104 | -DSECONDARY_LOAD_ADDRESS="${SECONDARY_LOAD_ADDRESS}" \ | 104 | -DSECONDARY_LOAD_ADDRESS="${SECONDARY_LOAD_ADDRESS}" \ | |
105 | -DSECONDARY_MAX_LOAD="${SECONDARY_MAX_LOAD}" \ | 105 | -DSECONDARY_MAX_LOAD="${SECONDARY_MAX_LOAD}" \ | |
106 | -DHEAP_LIMIT="${PRIMARY_HEAP_LIMIT}" \ | 106 | -DHEAP_LIMIT="${PRIMARY_HEAP_LIMIT}" \ | |
107 | -DHEAP_START="${PRIMARY_HEAP_START}" | 107 | -DHEAP_START="${PRIMARY_HEAP_START}" |