CML1 cleanup patch, take 2
OK, since peoples' territorial instincts have started to lather up, I guess I'm going to have to do this the hard way...
This file is a patch expressed in two ways. First, procedurally, as a way to duplicate its effects on any kernel source tree. Secondly, as an explicit patch against 2.4.3-pre8. It replaces my previous patch against 2.4.3-pre6.
This patch is the first result of a consistency audit of the configuration system. I have been building analysis tools to check the correctness of my CML2 rules file, and the processs of testing them turned up some problems.
The purpose of this patch is threefold:
(1) Clean up two errors in the CML1 corpus that could lead to subtle bugs. This is a BUG FIX in CML1.
(2) Fix up 20 cris-architecture configuration symbols lacking a CONFIG_ prefix, so they obey CML1/CML2 conventions and can be detected by `make dep', also static-analysis tools and consistency checkers. This is a BUG FIX in CML1.
(3) Fix up 10 configuration symbols of the form CONFIG_[0-9]*; specific changes are those suggested 8 Jan 2001 by PPC port maintainer Tom Rini. This change has been APPROVED by an authorized maintainer.
This leaves ten symbols in a form that breaks CML2. I'll go after the other individual maintainers about those. Sigh....
No actual object code will be changed by this patch; it merely does one-to-one substitutions on some configuration symbols.
Let me repeat that. This patch changes *no* object code. None. However, merging it before the 2.5 fork will save me (and probably Alan) some nasty large headaches later on...
For the procedural form, you will require the following Python 2.0 script:
-------------------------------- SCRIPT BEGINS HERE --------------------------- #!/usr/bin/env python
#
# symbolreplace -- replace symbols in the current Linux source tree
import sys, os, re, getopt
renamings = {} # Dictionary of translations
dobackup = 1
verbose = 0
#
# This is the only bit of knowledge in this script that knows anything
# about the lexical rules of the symbols we're looking for. It's used as a # guard expression on either side of each old symbol name -- matches # must begin either with this guard or with a beginning-of-line, and end # either with this guard or an end-of-line. The purpose is to prevent false # matches on FOO in FOOBAR and BARFOO. # guard = "[^A-Za-z0-9_]"
def backup(file):
"Create a backup for the given file."
# Compute where the RCS directory for this file should live. # Create it if necessary.
rcs_dir = os.path.join(os.path.dirname(file), "RCS") if not os.path.exists(rcs_dir):
os.mkdir(rcs_dir)
# If there is no RCS master corresponding to the file, create one, rcs_file = os.path.join(rcs_dir, os.path.basename(file) + ",v") if not os.path.exists(rcs_file):
os.system("ci -u -t- " + file + " >/dev/null 2>&1")
# Check out a working copy if needed.
if not os.access(file, os.W_OK):
os.system("co -l " + file + " >/dev/null 2>&1")
def treevisit(root, visitor):
"Apply the visitor function to every file under the given root path." def treewalker(hook, dirname, files):
for file in files:
here = os.path.join(dirname, file)
if os.path.isfile(here) and here.find("RCS") == -1:
hook(here)
os.path.walk(root, treewalker, visitor)
def replacer(file):
if verbose:
print file
# Suck the entire file into core as a list of lines. ifp = open(file, "r")
contents = ifp.read()
ifp.close()
# Now perform the substitution on each line.
substitutions = 0
for pattern in renamings.keys():
new_contents = pattern.sub(r"\1"+renamings[pattern]+r"\2", contents) if new_contents != contents:
substitutions = substitutions + 1
contents = new_contents
# Spew the results.
if substitutions:
if dobackup:
backup(file)
ofp = open(file, "w")
ofp.write(contents)
ofp.close()
def read_translations(fp):
"Read translation requests from the given file object, ignoring comments." while 1:
line = fp.readline()
if not line:
break
elif line[0] == '#' or line[0] == '\n':
continue
else:
(old, new) = line.split()
regexp = re.compile("(^|" + guard +")" + old + "(" + guard + "|$)") renamings[regexp] = new
# Main sequence
if __name__ == '__main__':
# Main sequence
# Process options
(options, arguments) = getopt.getopt(sys.argv[1:], "d:nv") topdir = "."
for (switch, val) in options:
if (switch == '-d'):
topdir = val
elif (switch == '-n'):
dobackup = 0
elif (switch == '-v'):
verbose = 1
read_translations(sys.stdin)
treevisit(topdir, replacer)
# That's all, folks!
-------------------------------- SCRIPT ENDS HERE -----------------------------
Here is the instructions I used to generate the bulk of the patch. A note on the one manual change follows.
-------------------------------- SCRIPT BEGINS END ---------------------------- #!/bin/sh
symbolreplace -v -d ~/src/linux <<EOF
# Old names still lingering -- these could cause configuration bugsCONFIG_PRINTER_READBACK CONFIG_PARPORT_1284CONFIG_AIC7XXX_TAGGED_QUEUEING CONFIG_AIC7XXX_TCQ_ON_BY_DEFAULT
#
# PPC symbol cleanup as approved by Tom Rini <[email protected]> #CONFIG_6xx CONFIG_CPU_PPC_6xxCONFIG_4xx CONFIG_CPU_PPC_4xxCONFIG_PPC64BRIDGE CONFIG_PPC_64BRIDGECONFIG_8260 CONFIG_CPU_PPC_8260CONFIG_8xx CONFIG_CPU_PPC_88xxCONFIG_8xxSMC2 CONFIG_SMC2_UARTCONFIG_8xxSCC CONFIG_USE_SCC_IOCONFIG_8xx_ALTSMC2 CONFIG_ALTSMC2CONFIG_8xx_COPYBACK CONFIG_CPU_PPC_8xx_COPYBACKCONFIG_8xx_CPU6 CONFIG_CPU_PPC_8xx_CPU6
#
# These need to be fixed too, but hackers are territorial creatures... #
#CONFIG_060_WRITETHROUGH CONFIG_M68060_WRITETHROUGH
#CONFIG_21285_WATCHDOG CONFIG_DC21285_WATCHDOG
#CONFIG_3C515 CONFIG_ISA3C515
#CONFIG_8139TOO CONFIG_RTL8139TOO
#CONFIG_8139TOO_PIO CONFIG_RTL8139TOO_PIO
#CONFIG_8139TOO_TUNE_TWISTER CONFIG_RTL8139TOO_TUNE_TWISTER
#CONFIG_82C710_MOUSE CONFIG_CT82C710_MOUSE
#CONFIG_977_WATCHDOG CONFIG_WB83C977_WATCHDOG
#CONFIG_3215 CONFIG_IBM3215
#CONFIG_3215_CONSOLE CONFIG_IBM3215_CONSOLE
#CONFIG_60XX_WDT CONFIG_SBC60XX_WDT
#
# Fix configuration symbols lacking a CONFIG_ prefix. This makes it
# possible for make dep to see these and avoids inconsistent builds. # It also makes it possible to write static analysis tools to examine # the configuration-symbol namespace without tripping over anything else. # ETRAX_DRAM_BASE CONFIG_ETRAX_DRAM_BASE ETRAX_DRAM_SIZE CONFIG_ETRAX_DRAM_SIZE DEF_R_WAITSTATES CONFIG_DEF_R_WAITSTATES DEF_R_BUS_CONFIG CONFIG_DEF_R_BUS_CONFIG DEF_R_DRAM_CONFIG CONFIG_DEF_R_DRAM_CONFIG DEF_R_DRAM_TIMING CONFIG_DEF_R_DRAM_TIMING DEF_R_PORT_PA_DIR CONFIG_DEF_R_PORT_PA_DIR DEF_R_PORT_PA_DATA CONFIG_DEF_R_PORT_PA_DATA DEF_R_PORT_PB_CONFIG CONFIG_DEF_R_PORT_PB_CONFIG DEF_R_PORT_PB_DIR CONFIG_DEF_R_PORT_PB_DIR DEF_R_PORT_PB_DATA CONFIG_DEF_R_PORT_PB_DATA ELTEST_IPADR CONFIG_ELTEST_IPADR ELTEST_NETWORK CONFIG_ELTEST_NETWORK ELTEST_NETMASK CONFIG_ELTEST_NETMASK ELTEST_BROADCAST CONFIG_ELTEST_BROADCAST ELTEST_GATEWAY CONFIG_ELTEST_GATEWAY ELTEST_ETHADR CONFIG_ELTEST_ETHADR EOF -------------------------------- SCRIPT ENDS HERE -----------------------------
After this, I manually removed the former PRINTER_READBACK entry in the configuration-help file.
Finally, here is the generated patch:
Diffs between last version checked in and current workfile(s):
Configure.help +1 -7
@@ -3724,12 +3724,6 @@ This code is also available as a module (say M), called parport_mfc3.o. If in doubt, saying N is the safe plan. -Support IEEE1284 status readback -CONFIG_PRINTER_READBACK - If you have a device on your parallel port that support this - protocol, this option will allow the device to report its status. It - is safe to say Y. - IEEE1284 transfer modes CONFIG_PARPORT_1284 If you have a printer that supports status readback or device ID, or
@@ -15979,7 +15973,7 @@ want this. Processor Type -CONFIG_6xx +CONFIG_CPU_PPC_6xx There are four types of PowerPC chips supported. The more common types (601, 603, 604, 740, 750), the Motorola embedded versions (821, 823, 850, 855, 860), the IBM embedded versions (403 and
video4linux/CQcam.txt +2 -2
@@ -43,7 +43,7 @@ CONFIG_PRINTER M for lp.o, parport.o parport_pc.o modules CONFIG_PNP_PARPORT M for autoprobe.o IEEE1284 readback module - CONFIG_PRINTER_READBACK M for parport_probe.o IEEE1284 readback module + CONFIG_PARPORT_1284 M for parport_probe.o IEEE1284 readback module CONFIG_VIDEO_DEV M for videodev.o video4linux module CONFIG_VIDEO_CQCAM M for c-qcam.o Color Quickcam module
@@ -127,7 +127,7 @@ The c-qcam is IEEE1284 compatible, so if you are using the proc file system (CONFIG_PROC_FS), the parallel printer support -(CONFIG_PRINTER), the IEEE 1284 system,(CONFIG_PRINTER_READBACK), you +(CONFIG_PRINTER), the IEEE 1284 system,(CONFIG_PARPORT_1284), you should be able to read some identification from your quickcam with modprobe -v parport
cris/Makefile +3 -3
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1 2001/03/26 09:15:51 esr Exp esr $ +# $Id: Makefile,v 1.11 2000/11/27 17:58:30 bjornw Exp $ # cris/Makefile # # This file is included by the global makefile so that you can add your own
@@ -25,8 +25,8 @@ # regenerating stuff (even for incremental linking of subsystems!) is # even more nauseating. LD = if [ ! -e $(LD_SCRIPT).tmp -o $(LD_SCRIPT) -nt $(LD_SCRIPT).tmp ]; then \ - sed -e s/@ETRAX_DRAM_BASE@/0x$(ETRAX_DRAM_BASE)/ \ - -e s/@ETRAX_DRAM_SIZE_M@/$(ETRAX_DRAM_SIZE)/ \ + sed -e s/@CONFIG_ETRAX_DRAM_BASE@/0x$(CONFIG_ETRAX_DRAM_BASE)/ \ + -e s/@ETRAX_DRAM_SIZE_M@/$(CONFIG_ETRAX_DRAM_SIZE)/ \ < $(LD_SCRIPT) > $(LD_SCRIPT).tmp; \ else true; \ fi && $(CROSS_COMPILE)ld -mcriself
cris/boot/compressed/head.S +4 -4
@@ -26,16 +26,16 @@ ;; We need to setup the bus registers before we start using the DRAM - move.d DEF_R_WAITSTATES, r0 + move.d CONFIG_DEF_R_WAITSTATES, r0 move.d r0, [R_WAITSTATES] - move.d DEF_R_BUS_CONFIG, r0 + move.d CONFIG_DEF_R_BUS_CONFIG, r0 move.d r0, [R_BUS_CONFIG] - move.d DEF_R_DRAM_CONFIG, r0 + move.d CONFIG_DEF_R_DRAM_CONFIG, r0 move.d r0, [R_DRAM_CONFIG] - move.d DEF_R_DRAM_TIMING, r0 + move.d CONFIG_DEF_R_DRAM_TIMING, r0 move.d r0, [R_DRAM_TIMING] #endif
cris/config.in +17 -17
@@ -44,8 +44,8 @@ define_bool CONFIG_CRIS_LOW_MAP y -hex 'DRAM base (hex)' ETRAX_DRAM_BASE 40000000 -int 'DRAM size (dec, in MB)' ETRAX_DRAM_SIZE 8 +hex 'DRAM base (hex)' CONFIG_ETRAX_DRAM_BASE 40000000 +int 'DRAM size (dec, in MB)' CONFIG_ETRAX_DRAM_SIZE 8 int 'Max possible flash size (dec, in MB)' CONFIG_ETRAX_FLASH_LENGTH 2 int 'Buswidth of flash in bytes' CONFIG_ETRAX_FLASH_BUSWIDTH 2
@@ -71,15 +71,15 @@ Serial-2 CONFIG_DEBUG_PORT2 \ Serial-3 CONFIG_DEBUG_PORT3" Serial-0 -hex 'R_WAITSTATES' DEF_R_WAITSTATES 95a6 -hex 'R_BUS_CONFIG' DEF_R_BUS_CONFIG 104 -hex 'R_DRAM_CONFIG' DEF_R_DRAM_CONFIG 1a200040 -hex 'R_DRAM_TIMING' DEF_R_DRAM_TIMING 5611 -hex 'R_PORT_PA_DIR' DEF_R_PORT_PA_DIR 1c -hex 'R_PORT_PA_DATA' DEF_R_PORT_PA_DATA 00 -hex 'R_PORT_PB_CONFIG' DEF_R_PORT_PB_CONFIG 00 -hex 'R_PORT_PB_DIR' DEF_R_PORT_PB_DIR 00 -hex 'R_PORT_PB_DATA' DEF_R_PORT_PB_DATA ff +hex 'R_WAITSTATES' CONFIG_DEF_R_WAITSTATES 95a6 +hex 'R_BUS_CONFIG' CONFIG_DEF_R_BUS_CONFIG 104 +hex 'R_DRAM_CONFIG' CONFIG_DEF_R_DRAM_CONFIG 1a200040 +hex 'R_DRAM_TIMING' CONFIG_DEF_R_DRAM_TIMING 5611 +hex 'R_PORT_PA_DIR' CONFIG_DEF_R_PORT_PA_DIR 1c +hex 'R_PORT_PA_DATA' CONFIG_DEF_R_PORT_PA_DATA 00 +hex 'R_PORT_PB_CONFIG' CONFIG_DEF_R_PORT_PB_CONFIG 00 +hex 'R_PORT_PB_DIR' CONFIG_DEF_R_PORT_PB_DIR 00 +hex 'R_PORT_PB_DATA' CONFIG_DEF_R_PORT_PB_DATA ff endmenu
@@ -91,12 +91,12 @@ comment 'All addresses are in hexadecimal form without 0x prefix' - hex 'IP address' ELTEST_IPADR ab1005af - hex 'Network' ELTEST_NETWORK ab100000 - hex 'Netmask' ELTEST_NETMASK ffff0000 - hex 'Broadcast' ELTEST_BROADCAST ab10ffff - hex 'Gateway' ELTEST_GATEWAY ab100101 - hwaddr 'Ethernet address' ELTEST_ETHADR 00408ccd0000 + hex 'IP address' CONFIG_ELTEST_IPADR ab1005af + hex 'Network' CONFIG_ELTEST_NETWORK ab100000 + hex 'Netmask' CONFIG_ELTEST_NETMASK ffff0000 + hex 'Broadcast' CONFIG_ELTEST_BROADCAST ab10ffff + hex 'Gateway' CONFIG_ELTEST_GATEWAY ab100101 + hwaddr 'Ethernet address' CONFIG_ELTEST_ETHADR 00408ccd0000 endmenu fi
cris/defconfig +11 -11
@@ -26,8 +26,8 @@ CONFIG_ETRAX100LX=y # CONFIG_SVINTO_SIM is not set CONFIG_CRIS_LOW_MAP=y -ETRAX_DRAM_BASE=40000000 -ETRAX_DRAM_SIZE=8 +CONFIG_ETRAX_DRAM_BASE=40000000 +CONFIG_ETRAX_DRAM_SIZE=8 CONFIG_ETRAX_PA_LEDS=y # CONFIG_ETRAX_PB_LEDS is not set # CONFIG_ETRAX_90000000_LEDS is not set
@@ -40,15 +40,15 @@ # CONFIG_DEBUG_PORT1 is not set # CONFIG_DEBUG_PORT2 is not set # CONFIG_DEBUG_PORT3 is not set -DEF_R_WAITSTATES=95a6 -DEF_R_BUS_CONFIG=104 -DEF_R_DRAM_CONFIG=1a200040 -DEF_R_DRAM_TIMING=5611 -DEF_R_PORT_PA_DIR=1d -DEF_R_PORT_PA_DATA=f0 -DEF_R_PORT_PB_CONFIG=00 -DEF_R_PORT_PB_DIR=1e -DEF_R_PORT_PB_DATA=f3 +CONFIG_DEF_R_WAITSTATES=95a6 +CONFIG_DEF_R_BUS_CONFIG=104 +CONFIG_DEF_R_DRAM_CONFIG=1a200040 +CONFIG_DEF_R_DRAM_TIMING=5611 +CONFIG_DEF_R_PORT_PA_DIR=1d +CONFIG_DEF_R_PORT_PA_DATA=f0 +CONFIG_DEF_R_PORT_PB_CONFIG=00 +CONFIG_DEF_R_PORT_PB_DIR=1e +CONFIG_DEF_R_PORT_PB_DATA=f3 # # Drivers for Etrax built-in interfaces
cris/kernel/head.S +10 -13
@@ -1,4 +1,4 @@ - ;; $Id: head.S,v 1.1 2001/03/26 09:15:58 esr Exp esr $ + ;; $Id: head.S,v 1.11 2001/01/16 16:31:38 bjornw Exp $ ;; ;; Head of the kernel - alter with care ;;
@@ -7,9 +7,6 @@ ;; Authors: Bjorn Wesen ([email protected]) ;; ;; $Log: head.S,v $ - ;; Revision 1.1 2001/03/26 09:15:58 esr - ;; Initial revision - ;; ;; Revision 1.11 2001/01/16 16:31:38 bjornw ;; * Changed name and semantics of running_from_flash to romfs_in_flash, ;; set by head.S to indicate to setup.c whether there is a cramfs image
@@ -139,16 +136,16 @@ ;; We need to setup the bus registers before we start using the DRAM - move.d DEF_R_WAITSTATES, r0 + move.d CONFIG_DEF_R_WAITSTATES, r0 move.d r0, [R_WAITSTATES] - move.d DEF_R_BUS_CONFIG, r0 + move.d CONFIG_DEF_R_BUS_CONFIG, r0 move.d r0, [R_BUS_CONFIG] - move.d DEF_R_DRAM_CONFIG, r0 + move.d CONFIG_DEF_R_DRAM_CONFIG, r0 move.d r0, [R_DRAM_CONFIG] - move.d DEF_R_DRAM_TIMING, r0 + move.d CONFIG_DEF_R_DRAM_TIMING, r0 move.d r0, [R_DRAM_TIMING] #endif
@@ -425,20 +422,20 @@ ;; setup port PA and PB default initial directions and data ;; including their shadow registers - move.b DEF_R_PORT_PA_DIR,r0 + move.b CONFIG_DEF_R_PORT_PA_DIR,r0 move.b r0,[_port_pa_dir_shadow] move.b r0,[R_PORT_PA_DIR] - move.b DEF_R_PORT_PA_DATA,r0 + move.b CONFIG_DEF_R_PORT_PA_DATA,r0 move.b r0,[_port_pa_data_shadow] move.b r0,[R_PORT_PA_DATA] - move.b DEF_R_PORT_PB_CONFIG,r0 + move.b CONFIG_DEF_R_PORT_PB_CONFIG,r0 move.b r0,[_port_pb_config_shadow] move.b r0,[R_PORT_PB_CONFIG] - move.b DEF_R_PORT_PB_DIR,r0 + move.b CONFIG_DEF_R_PORT_PB_DIR,r0 move.b r0,[_port_pb_dir_shadow] move.b r0,[R_PORT_PB_DIR] - move.b DEF_R_PORT_PB_DATA,r0 + move.b CONFIG_DEF_R_PORT_PB_DATA,r0 move.b r0,[_port_pb_data_shadow] move.b r0,[R_PORT_PB_DATA]
m68k/config.in +1 -1
@@ -140,7 +140,7 @@ fi dep_tristate ' Parallel printer support' CONFIG_PRINTER $CONFIG_PARPORT if [ "$CONFIG_PRINTER" != "n" ]; then - bool ' Support IEEE1284 status readback' CONFIG_PRINTER_READBACK + bool ' Support IEEE1284 status readback' CONFIG_PARPORT_1284 fi fi
ppc/8xx_io/Config.in +6 -6
@@ -18,19 +18,19 @@ fi bool 'Use Big CPM Ethernet Buffers' CONFIG_ENET_BIG_BUFFERS fi -bool 'Use SMC2 for UART' CONFIG_8xxSMC2 -if [ "$CONFIG_8xxSMC2" = "y" ]; then - bool 'Use Alternate SMC2 I/O (823/850)' CONFIG_8xx_ALTSMC2 +bool 'Use SMC2 for UART' CONFIG_SMC2_UART +if [ "$CONFIG_SMC2_UART" = "y" ]; then + bool 'Use Alternate SMC2 I/O (823/850)' CONFIG_ALTSMC2 bool 'Use SMC2 for Console' CONFIG_8xx_CONS_SMC2 fi -bool 'Enable SCC2 and SCC3 for UART' CONFIG_8xxSCC +bool 'Enable SCC2 and SCC3 for UART' CONFIG_USE_SCC_IO # This doesn't really belong here, but it is convenient to ask # 8xx specific questions. comment 'Generic MPC8xx Options' -bool 'Copy-Back Data Cache (else Writethrough)' CONFIG_8xx_COPYBACK -bool 'CPU6 Silicon Errata (860 Pre Rev. C)' CONFIG_8xx_CPU6 +bool 'Copy-Back Data Cache (else Writethrough)' CONFIG_CPU_PPC_8xx_COPYBACK +bool 'CPU6 Silicon Errata (860 Pre Rev. C)' CONFIG_CPU_PPC_8xx_CPU6 if [ "$CONFIG_IDE" = "y" ]; then bool 'MPC8xx direct IDE support on PCMCIA port' CONFIG_BLK_DEV_MPC8xx_IDE
ppc/8xx_io/uart.c +5 -5
@@ -134,15 +134,15 @@ { 0, 0, PROFF_SMC1, CPMVEC_SMC1, 0, 0 }, /* SMC1 ttyS0 */ #endif #if !defined(CONFIG_USB_MPC8xx) && !defined(CONFIG_USB_CLIENT_MPC8xx) -# ifdef CONFIG_8xxSMC2 +# ifdef CONFIG_SMC2_UART { 0, 0, PROFF_SMC2, CPMVEC_SMC2, 0, 1 }, /* SMC2 ttyS1 */ # endif -# ifdef CONFIG_8xxSCC +# ifdef CONFIG_USE_SCC_IO { 0, 0, PROFF_SCC2, CPMVEC_SCC2, 0, (NUM_IS_SCC | 1) }, /* SCC2 ttyS2 */ { 0, 0, PROFF_SCC3, CPMVEC_SCC3, 0, (NUM_IS_SCC | 2) }, /* SCC3 ttyS3 */ # endif #else /* CONFIG_USB_xxx */ -# ifdef CONFIG_8xxSCC +# ifdef CONFIG_USE_SCC_IO { 0, 0, PROFF_SCC3, CPMVEC_SCC3, 0, (NUM_IS_SCC | 2) }, /* SCC3 ttyS3 */ # endif #endif /* CONFIG_USB_xxx */
@@ -2533,7 +2533,7 @@/* Configure SCC2, SCC3, and SCC4 instead of port A parallel I/O. */ -#ifdef CONFIG_8xxSCC +#ifdef CONFIG_USE_SCC_IO #ifndef CONFIG_MBX /* The "standard" configuration through the 860. */
@@ -2747,7 +2747,7 @@* parallel I/O. On 823/850 these are on * port A for SMC2. */ -#ifndef CONFIG_8xx_ALTSMC2 +#ifndef CONFIG_ALTSMC2 iobits =0xc0 << (idx *4 ); cp->cp_pbpar |= iobits; cp->cp_pbdir &= ~iobits;
ppc/Makefile +12 -12
@@ -26,22 +26,22 @@ -mmultiple -mstring CPP = $(CC) -E $(CFLAGS) -ifdef CONFIG_4xx +ifdef CONFIG_CPU_PPC_4xx CFLAGS := $(CFLAGS) -mcpu=403 endif -ifdef CONFIG_8xx +ifdef CONFIG_CPU_PPC_88xx CFLAGS := $(CFLAGS) -mcpu=860 -I../8xx_io endif -ifdef CONFIG_PPC64BRIDGE +ifdef CONFIG_PPC_64BRIDGE CFLAGS := $(CFLAGS) -Wa,-mppc64bridge endif -ifdef CONFIG_4xx +ifdef CONFIG_CPU_PPC_4xx HEAD := arch/ppc/kernel/head_4xx.o else - ifdef CONFIG_8xx + ifdef CONFIG_CPU_PPC_88xx HEAD := arch/ppc/kernel/head_8xx.o else HEAD := arch/ppc/kernel/head.o
@@ -70,12 +70,12 @@ MAKEMBXBOOT = $(MAKE) -C arch/$(ARCH)/mbxboot MAKETREEBOOT = $(MAKE) -C arch/$(ARCH)/treeboot -ifdef CONFIG_8xx +ifdef CONFIG_CPU_PPC_88xx SUBDIRS += arch/ppc/8xx_io DRIVERS += arch/ppc/8xx_io/8xx_io.o endif -ifdef CONFIG_8260 +ifdef CONFIG_CPU_PPC_8260 SUBDIRS += arch/ppc/8260_io DRIVERS += arch/ppc/8260_io/8260_io.o endif
@@ -91,19 +91,19 @@ BOOT_TARGETS = zImage znetboot.initrd zImage.initrd -ifdef CONFIG_4xx +ifdef CONFIG_CPU_PPC_4xx $(BOOT_TARGETS): $(CHECKS) vmlinux @$(MAKETREEBOOT) $@ endif -ifdef CONFIG_8xx +ifdef CONFIG_CPU_PPC_88xx $(BOOT_TARGETS): $(CHECKS) vmlinux @$(MAKECOFFBOOT) $@ @$(MAKEMBXBOOT) $@ endif -ifdef CONFIG_6xx -ifndef CONFIG_8260 +ifdef CONFIG_CPU_PPC_6xx +ifndef CONFIG_CPU_PPC_8260 $(BOOT_TARGETS): $(CHECKS) vmlinux @$(MAKECOFFBOOT) $@ @$(MAKEBOOT) $@
@@ -128,7 +128,7 @@ endif endif -ifdef CONFIG_PPC64BRIDGE +ifdef CONFIG_PPC_64BRIDGE $(BOOT_TARGETS): $(CHECKS) vmlinux @$(MAKECOFFBOOT) $@ @$(MAKEBOOT) $@
ppc/boot/Makefile +1 -1
@@ -31,7 +31,7 @@ TFTPIMAGE=/tftpboot/zImage.prep$(MSIZE) endif -ifeq ($(CONFIG_PPC64BRIDGE),y) +ifeq ($(CONFIG_PPC_64BRIDGE),y) MSIZE=.64 else MSIZE=
ppc/chrpboot/Makefile +1 -1
@@ -5,7 +5,7 @@ # # Based on coffboot by Paul Mackerras -ifeq ($(CONFIG_PPC64BRIDGE),y) +ifeq ($(CONFIG_PPC_64BRIDGE),y) MSIZE=.64 AFLAGS += -Wa,-mppc64bridge else
ppc/coffboot/Makefile +1 -1
@@ -14,7 +14,7 @@ CHRPOBJS = crt0.o start.o chrpmain.o misc.o string.o zlib.o image.o LIBS = $(TOPDIR)/lib/lib.a -ifeq ($(CONFIG_PPC64BRIDGE),y) +ifeq ($(CONFIG_PPC_64BRIDGE),y) MSIZE=.64 else MSIZE=
ppc/config.in +22 -22
126 lines not on this page · raw message
ppc/configs/IVMS8_defconfig +8 -8
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -430,14 +430,14 @@ CONFIG_FEC_ENET=y CONFIG_USE_MDIO=y CONFIG_ENET_BIG_BUFFERS=y -# CONFIG_8xxSMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_SMC2_UART is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/SM850_defconfig +9 -9
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -396,16 +396,16 @@ CONFIG_SCC3_ENET=y # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -CONFIG_8xx_ALTSMC2=y +CONFIG_SMC2_UART=y +CONFIG_ALTSMC2=y CONFIG_8xx_CONS_SMC2=y -# CONFIG_8xxSCC is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -CONFIG_8xx_CPU6=y +CONFIG_CPU_PPC_8xx_COPYBACK=y +CONFIG_CPU_PPC_8xx_CPU6=y # # USB support
ppc/configs/SPD823TS_defconfig +9 -9
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -392,16 +392,16 @@ CONFIG_SCC2_ENET=y # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -CONFIG_8xx_ALTSMC2=y +CONFIG_SMC2_UART=y +CONFIG_ALTSMC2=y # CONFIG_8xx_CONS_SMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/TQM823L_defconfig +9 -9
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -395,16 +395,16 @@ # CONFIG_SCC3_ENET is not set # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -CONFIG_8xx_ALTSMC2=y +CONFIG_SMC2_UART=y +CONFIG_ALTSMC2=y # CONFIG_8xx_CONS_SMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/TQM850L_defconfig +9 -9
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -395,16 +395,16 @@ # CONFIG_SCC3_ENET is not set # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -CONFIG_8xx_ALTSMC2=y +CONFIG_SMC2_UART=y +CONFIG_ALTSMC2=y # CONFIG_8xx_CONS_SMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -CONFIG_8xx_CPU6=y +CONFIG_CPU_PPC_8xx_COPYBACK=y +CONFIG_CPU_PPC_8xx_CPU6=y # # USB support
ppc/configs/TQM860L_defconfig +9 -9
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -CONFIG_8xx=y +# CONFIG_CPU_PPC_8260 is not set +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -395,16 +395,16 @@ # CONFIG_SCC3_ENET is not set # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -# CONFIG_8xx_ALTSMC2 is not set +CONFIG_SMC2_UART=y +# CONFIG_ALTSMC2 is not set # CONFIG_8xx_CONS_SMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/apus_defconfig +4 -4
@@ -17,12 +17,12 @@ # Platform support # CONFIG_PPC=y -CONFIG_6xx=y -# CONFIG_4xx is not set +CONFIG_CPU_PPC_6xx=y +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set -# CONFIG_8260 is not set +# CONFIG_CPU_PPC_88xx is not set +# CONFIG_CPU_PPC_8260 is not set # CONFIG_ALL_PPC is not set CONFIG_APUS=y CONFIG_PPC601_SYNC_FIX=y
ppc/configs/bseip_defconfig +8 -8
@@ -17,11 +17,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -CONFIG_8xx=y +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -409,15 +409,15 @@ CONFIG_SCC2_ENET=y # CONFIG_FEC_ENET is not set # CONFIG_ENET_BIG_BUFFERS is not set -CONFIG_8xxSMC2=y -# CONFIG_8xx_ALTSMC2 is not set -# CONFIG_8xxSCC is not set +CONFIG_SMC2_UART=y +# CONFIG_ALTSMC2 is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/common_defconfig +4 -4
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -CONFIG_6xx=y -# CONFIG_4xx is not set +CONFIG_CPU_PPC_6xx=y +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set -# CONFIG_8260 is not set +# CONFIG_CPU_PPC_88xx is not set +# CONFIG_CPU_PPC_8260 is not set CONFIG_ALL_PPC=y # CONFIG_APUS is not set CONFIG_PPC601_SYNC_FIX=y
ppc/configs/est8260_defconfig +4 -4
@@ -17,12 +17,12 @@ # Platform support # CONFIG_PPC=y -CONFIG_6xx=y -# CONFIG_4xx is not set +CONFIG_CPU_PPC_6xx=y +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set -CONFIG_8260=y +# CONFIG_CPU_PPC_88xx is not set +CONFIG_CPU_PPC_8260=y CONFIG_SERIAL_CONSOLE=y CONFIG_EST8260=y CONFIG_PPC601_SYNC_FIX=y
ppc/configs/ibmchrp_defconfig +4 -4
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -CONFIG_6xx=y -# CONFIG_4xx is not set +CONFIG_CPU_PPC_6xx=y +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8260 is not set -# CONFIG_8xx is not set +# CONFIG_CPU_PPC_8260 is not set +# CONFIG_CPU_PPC_88xx is not set CONFIG_ALL_PPC=y # CONFIG_GEMINI is not set # CONFIG_APUS is not set
ppc/configs/mbx_defconfig +8 -8
@@ -17,11 +17,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -CONFIG_8xx=y +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set # CONFIG_RPXCLASSIC is not set
@@ -401,15 +401,15 @@ CONFIG_SCC1_ENET=y # CONFIG_FEC_ENET is not set CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -# CONFIG_8xx_ALTSMC2 is not set -CONFIG_8xxSCC=y +CONFIG_SMC2_UART=y +# CONFIG_ALTSMC2 is not set +CONFIG_USE_SCC_IO=y # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -CONFIG_8xx_CPU6=y +CONFIG_CPU_PPC_8xx_COPYBACK=y +CONFIG_CPU_PPC_8xx_CPU6=y # # USB support
ppc/configs/oak_defconfig +3 -3
@@ -19,11 +19,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -CONFIG_4xx=y +# CONFIG_CPU_PPC_6xx is not set +CONFIG_CPU_PPC_4xx=y # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set +# CONFIG_CPU_PPC_88xx is not set CONFIG_OAK=y # CONFIG_WALNUT is not set CONFIG_PPC601_SYNC_FIX=y
ppc/configs/power3_defconfig +4 -4
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set CONFIG_POWER3=y # CONFIG_POWER4 is not set -# CONFIG_8xx is not set -CONFIG_PPC64BRIDGE=y +# CONFIG_CPU_PPC_88xx is not set +CONFIG_PPC_64BRIDGE=y CONFIG_ALL_PPC=y CONFIG_SMP=y
ppc/configs/rpxcllf_defconfig +8 -8
@@ -17,11 +17,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -CONFIG_8xx=y +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y # CONFIG_RPXLITE is not set CONFIG_RPXCLASSIC=y
@@ -408,15 +408,15 @@ CONFIG_SCC1_ENET=y CONFIG_FEC_ENET=y CONFIG_ENET_BIG_BUFFERS=y -CONFIG_8xxSMC2=y -# CONFIG_8xx_ALTSMC2 is not set -CONFIG_8xxSCC=y +CONFIG_SMC2_UART=y +# CONFIG_ALTSMC2 is not set +CONFIG_USE_SCC_IO=y # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/rpxlite_defconfig +7 -7
@@ -17,11 +17,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -# CONFIG_4xx is not set +# CONFIG_CPU_PPC_6xx is not set +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -CONFIG_8xx=y +CONFIG_CPU_PPC_88xx=y CONFIG_SERIAL_CONSOLE=y CONFIG_RPXLITE=y # CONFIG_RPXCLASSIC is not set
@@ -409,14 +409,14 @@ CONFIG_SCC2_ENET=y # CONFIG_FEC_ENET is not set # CONFIG_ENET_BIG_BUFFERS is not set -# CONFIG_8xxSMC2 is not set -# CONFIG_8xxSCC is not set +# CONFIG_SMC2_UART is not set +# CONFIG_USE_SCC_IO is not set # # Generic MPC8xx Options # -CONFIG_8xx_COPYBACK=y -# CONFIG_8xx_CPU6 is not set +CONFIG_CPU_PPC_8xx_COPYBACK=y +# CONFIG_CPU_PPC_8xx_CPU6 is not set # # USB support
ppc/configs/walnut_defconfig +3 -3
@@ -19,11 +19,11 @@ # Platform support # CONFIG_PPC=y -# CONFIG_6xx is not set -CONFIG_4xx=y +# CONFIG_CPU_PPC_6xx is not set +CONFIG_CPU_PPC_4xx=y # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set +# CONFIG_CPU_PPC_88xx is not set # CONFIG_OAK is not set CONFIG_WALNUT=y CONFIG_PPC601_SYNC_FIX=y
ppc/defconfig +4 -4
@@ -19,12 +19,12 @@ # Platform support # CONFIG_PPC=y -CONFIG_6xx=y -# CONFIG_4xx is not set +CONFIG_CPU_PPC_6xx=y +# CONFIG_CPU_PPC_4xx is not set # CONFIG_POWER3 is not set # CONFIG_POWER4 is not set -# CONFIG_8xx is not set -# CONFIG_8260 is not set +# CONFIG_CPU_PPC_88xx is not set +# CONFIG_CPU_PPC_8260 is not set CONFIG_ALL_PPC=y # CONFIG_APUS is not set CONFIG_PPC601_SYNC_FIX=y
ppc/kernel/Makefile +7 -7
@@ -7,7 +7,7 @@ # # Note 2! The CFLAGS definitions are now in the main makefile... -ifdef CONFIG_PPC64BRIDGE +ifdef CONFIG_PPC_64BRIDGE .S.o: $(CC) $(CFLAGS) -D__ASSEMBLY__ -mppc64bridge -c $< -o $*.o else
@@ -15,10 +15,10 @@ $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $*.o endif -ifeq ($(CONFIG_4xx),y) +ifeq ($(CONFIG_CPU_PPC_4xx),y) KHEAD := head_4xx.o else - ifeq ($(CONFIG_8xx),y) + ifeq ($(CONFIG_CPU_PPC_88xx),y) KHEAD := head_8xx.o else KHEAD := head.o
@@ -44,14 +44,14 @@ obj-$(CONFIG_PPC_RTAS) += error_log.o proc_rtas.o obj-$(CONFIG_NVRAM) += pmac_nvram.o obj-$(CONFIG_PREP_RESIDUAL) += residual.o -obj-$(CONFIG_4xx) += ppc4xx_pic.o +obj-$(CONFIG_CPU_PPC_4xx) += ppc4xx_pic.o obj-$(CONFIG_OAK) += oak_setup.o obj-$(CONFIG_WALNUT) += walnut_setup.o ifeq ($(CONFIG_WALNUT),y) obj-$(CONFIG_PCI) += galaxy_pci.o endif -obj-$(CONFIG_8xx) += m8xx_setup.o ppc8xx_pic.o -ifeq ($(CONFIG_8xx),y) +obj-$(CONFIG_CPU_PPC_88xx) += m8xx_setup.o ppc8xx_pic.o +ifeq ($(CONFIG_CPU_PPC_88xx),y) obj-$(CONFIG_PCI) += qspan_pci.c else obj-$(CONFIG_PPC) += hashtable.o
@@ -65,7 +65,7 @@ indirect_pci.o i8259.o prep_pci.o \ prep_time.o prep_nvram.o prep_setup.o obj-$(CONFIG_PMAC_BACKLIGHT) += pmac_backlight.o -obj-$(CONFIG_8260) += m8260_setup.o ppc8260_pic.o +obj-$(CONFIG_CPU_PPC_8260) += m8260_setup.o ppc8260_pic.o include $(TOPDIR)/Rules.make
ppc/kernel/align.c +3 -3
@@ -21,7 +21,7 @@unsigned char flags; }; -#if defined(CONFIG_4xx) || defined(CONFIG_POWER4 ) +#if defined(CONFIG_CPU_PPC_4xx) || defined(CONFIG_POWER4 )#define OPCD (inst) (((inst) & 0xFC000000) >> 26)#define RS (inst) (((inst) & 0x03E00000) >> 21)#define RA (inst) (((inst) & 0x001F0000) >> 16)
@@ -184,7 +184,7 @@ fix_alignment(struct pt_regs *regs) {int instr, nb, flags; -#if defined(CONFIG_4xx) || defined(CONFIG_POWER4 ) +#if defined(CONFIG_CPU_PPC_4xx) || defined(CONFIG_POWER4 )int opcode, f1, f2, f3;#endif int i, t;
@@ -197,7 +197,7 @@unsigned char v[8 ]; } data; -#if defined(CONFIG_4xx) || defined(CONFIG_POWER4 ) +#if defined(CONFIG_CPU_PPC_4xx) || defined(CONFIG_POWER4 )/* The 4xx-family processors have no DSISR register, * so we emulate it. * The POWER4 has a DSISR register but doesn't set it on
ppc/kernel/chrp_pci.c +2 -2
@@ -507,7 +507,7 @@#endif /* CONFIG_POWER4 */ } -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE #ifdef CONFIG_POWER4 /* * Hack alert!!!
@@ -534,4 +534,4 @@return offset; }#endif /* CONFIG_POWER4 */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */
ppc/kernel/chrp_setup.c +2 -2
@@ -255,7 +255,7 @@/* Lookup PCI host bridges */ chrp_find_bridges (); -#ifndef CONFIG_PPC64BRIDGE +#ifndef CONFIG_PPC_64BRIDGE /* PCI bridge config space access area - * appears to be not in devtree on longtrail. */ ioremap (GG2_PCI_CONFIG_BASE ,0x80000 );
@@ -265,7 +265,7 @@*/ hydra_init ();/* Mac I/O */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ #ifndef CONFIG_POWER4 /* Some IBM machines don't have the hydra -- Cort */
ppc/kernel/entry.S +4 -4
@@ -1,7 +1,7 @@ /* * arch/ppc/kernel/entry.S * - * $Id: entry.S,v 1.1 2001/03/26 09:09:49 esr Exp esr $ + * $Id: entry.S,v 1.4 1999/09/14 05:18:14 dmalek Exp $ * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas ([email protected])
@@ -237,11 +237,11 @@ tophys(r0,r4) CLR_TOP32(r0) mtspr SPRG3,r0 /* Update current THREAD phys addr */ -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx /* XXX it would be nice to find a SPRGx for this on 6xx,7xx too */ lwz r9,PGDIR(r4) /* cache the page table root */ tophys(r9,r9) /* convert to phys addr */ -#ifdef CONFIG_8xx_CPU6 +#ifdef CONFIG_CPU_PPC_8xx_CPU6 lis r6, cpu6_errata_word@h ori r6, r6, cpu6_errata_word@l li r5, 0x3980
@@ -251,7 +251,7 @@ mtspr M_TWB,r9 /* Update MMU base address */ tlbia sync -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ lwz r1,KSP(r4) /* Load new stack pointer */ /* save the old current 'last' for return value */ mr r3,r2
ppc/kernel/hashtable.S +15 -15
@@ -1,7 +1,7 @@ /* * arch/ppc/kernel/hashtable.S * - * $Id: hashtable.S,v 1.1 2001/03/26 09:09:55 esr Exp esr $ + * $Id: hashtable.S,v 1.6 1999/10/08 01:56:15 paulus Exp $ * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas ([email protected])
@@ -53,7 +53,7 @@ .globl hash_page hash_page: -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE mfmsr r0 clrldi r0,r0,1 /* make sure it's in 32-bit mode */ MTMSRD(r0)
@@ -159,7 +159,7 @@ 57: #endif -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE /* Construct the high word of the PPC-style PTE */ mfsrin r5,r3 /* get segment reg for segment */ rlwinm r5,r5,0,5,31
@@ -307,7 +307,7 @@ std r5,0(r3) /* finally set V bit in PTE */ #endif /* CONFIG_SMP */ -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ /* Construct the high word of the PPC-style PTE */ mfsrin r5,r3 /* get segment reg for segment */
@@ -439,7 +439,7 @@ oris r5,r5,0x8000 stw r5,0(r3) /* finally set V bit in PTE */ #endif /* CONFIG_SMP */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ sync /* make sure pte updates get to memory */
@@ -527,7 +527,7 @@ #endif blr 99: -#if defined(CONFIG_SMP) || defined(CONFIG_PPC64BRIDGE) +#if defined(CONFIG_SMP) || defined(CONFIG_PPC_64BRIDGE) /* Note - we had better not do anything which could generate a hash table miss while we have the hash table locked, or we'll get a deadlock. -paulus */
@@ -549,7 +549,7 @@ bne- 10b eieio #endif -#ifndef CONFIG_PPC64BRIDGE +#ifndef CONFIG_PPC_64BRIDGE rlwinm r3,r3,7,1,24 /* put VSID lower limit in position */ oris r3,r3,0x8000 /* set V bit */ rlwinm r4,r4,7,1,24 /* put VSID upper limit in position */
@@ -568,7 +568,7 @@ blt 2f /* branch if out of range */ stw r0,0(r5) /* invalidate entry */ 2: bdnz 1b /* continue with loop */ -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ rldic r3,r3,12,20 /* put VSID lower limit in position */ ori r3,r3,1 /* set V bit */ rldic r4,r4,12,20 /* put VSID upper limit in position */
@@ -586,7 +586,7 @@ blt 2f /* branch if out of range */ std r0,0(r5) /* invalidate entry */ 2: bdnz 1b /* continue with loop */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ sync tlbia
@@ -597,7 +597,7 @@ lis r3,hash_table_lock@ha stw r0,hash_table_lock@l(r3) #endif -#if defined(CONFIG_SMP) || defined(CONFIG_PPC64BRIDGE) +#if defined(CONFIG_SMP) || defined(CONFIG_PPC_64BRIDGE) mtmsr r10 SYNC #endif
@@ -626,7 +626,7 @@ #endif blr 99: -#if defined(CONFIG_SMP) || defined(CONFIG_PPC64BRIDGE) +#if defined(CONFIG_SMP) || defined(CONFIG_PPC_64BRIDGE) /* Note - we had better not do anything which could generate a hash table miss while we have the hash table locked, or we'll get a deadlock. -paulus */
@@ -652,7 +652,7 @@ b 11b 12: eieio #endif -#ifndef CONFIG_PPC64BRIDGE +#ifndef CONFIG_PPC_64BRIDGE rlwinm r3,r3,11,1,20 /* put context into vsid */ rlwimi r3,r4,11,21,24 /* put top 4 bits of va into vsid */ oris r3,r3,0x8000 /* set V (valid) bit */
@@ -682,7 +682,7 @@ bne 4f /* if we didn't find it */ 3: li r0,0 stw r0,0(r7) /* invalidate entry */ -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ rldic r3,r3,16,16 /* put context into vsid (<< 12) */ rlwimi r3,r4,16,16,24 /* top 4 bits of va and API */ ori r3,r3,1 /* set V (valid) bit */
@@ -712,7 +712,7 @@ bne 4f /* if we didn't find it */ 3: li r0,0 std r0,0(r7) /* invalidate entry */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ 4: sync tlbie r4 /* in hw tlb too */ sync
@@ -722,7 +722,7 @@ li r0,0 stw r0,0(r9) /* clear hash_table_lock */ #endif -#if defined(CONFIG_SMP) || defined(CONFIG_PPC64BRIDGE) +#if defined(CONFIG_SMP) || defined(CONFIG_PPC_64BRIDGE) mtmsr r10 SYNC #endif
ppc/kernel/head.S +29 -29
206 lines not on this page · raw message
ppc/kernel/head_4xx.S +1 -1
@@ -43,7 +43,7 @@ ### Check to make sure the right processor has been defined. ### -#if !defined(CONFIG_4xx) +#if !defined(CONFIG_CPU_PPC_4xx) #error "This file is only appropriate for kernels supporting the PPC4xx." #endif
ppc/kernel/head_8xx.S +25 -25
199 lines not on this page · raw message
ppc/kernel/idle.c +3 -3
@@ -1,5 +1,5 @@/* -* $Id: idle.c,v 1.1 2001/03/26 09:09:37 esr Exp esr $ +* $Id: idle.c,v 1.68 1999/10/15 18:16:03 cort Exp $ * * Idle daemon for PowerPC. Idle daemon will handle any action * that needs to be taken when the system becomes idle.
@@ -99,7 +99,7 @@PTE *reclaim_ptr =0 ;void inline htab_reclaim (void ) { -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx#if 0 PTE *ptr, *start;static int dir =1 ;
@@ -149,7 +149,7 @@ } out:if ( current->need_resched )printk ("need_resched: %lx\n" , current->need_resched); -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ }#if 0
ppc/kernel/irq.c +3 -3
@@ -1,5 +1,5 @@/* -* $Id: irq.c,v 1.1 2001/03/26 09:09:36 esr Exp esr $ +* $Id: irq.c,v 1.113 1999/09/17 17:22:56 cort Exp $ * * arch/ppc/kernel/irq.c *
@@ -24,7 +24,7 @@* mask register (of which only 16 are defined), hence the weird shifting * and compliment of the cached_irq_mask. I want to be able to stuff * this right into the SIU SMASK register. -* Many of the prep/chrp functions are conditional compiled on CONFIG_8xx +* Many of the prep/chrp functions are conditional compiled on CONFIG_CPU_PPC_88xx * to reduce code space and undefined function references. */
@@ -218,7 +218,7 @@return -ENOENT ; } -#if (defined(CONFIG_8xx) || defined(CONFIG_8260 )) +#if (defined(CONFIG_CPU_PPC_88xx) || defined(CONFIG_CPU_PPC_8260 ))/* Name change so we can catch standard drivers that potentially mess up * the internal interrupt controller on 8xx and 8260. Just bear with me, * I don't like this either and I am searching a better solution. For
ppc/kernel/misc.S +11 -11
@@ -21,11 +21,11 @@ #include <asm/cache.h> #include "ppc_asm.h" -#if defined(CONFIG_4xx) || defined(CONFIG_8xx) +#if defined(CONFIG_CPU_PPC_4xx) || defined(CONFIG_CPU_PPC_88xx) #define CACHE_LINE_SIZE 16 #define LG_CACHE_LINE_SIZE 4 #define MAX_COPY_PREFETCH 1 -#elif !defined(CONFIG_PPC64BRIDGE) +#elif !defined(CONFIG_PPC_64BRIDGE) #define CACHE_LINE_SIZE 32 #define LG_CACHE_LINE_SIZE 5 #define MAX_COPY_PREFETCH 4
@@ -33,7 +33,7 @@ #define CACHE_LINE_SIZE 128 #define LG_CACHE_LINE_SIZE 7 #define MAX_COPY_PREFETCH 1 -#endif /* CONFIG_4xx || CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_4xx || CONFIG_CPU_PPC_88xx */ .text
@@ -222,7 +222,7 @@ * This is a no-op on the 601. */ _GLOBAL(flush_instruction_cache) -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx isync lis r5, IDC_INVALL@h mtspr IC_CST, r5
@@ -235,7 +235,7 @@ mfspr r3,HID0 ori r3,r3,HID0_ICFI mtspr HID0,r3 -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ isync blr
@@ -349,7 +349,7 @@ _GLOBAL(clear_page) li r0,4096/CACHE_LINE_SIZE mtctr r0 -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx li r4, 0 1: stw r4, 0(r3) stw r4, 4(r3)
@@ -383,7 +383,7 @@ addi r4,r4,-4 li r5,4 -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx #if MAX_COPY_PREFETCH > 1 li r0,MAX_COPY_PREFETCH li r11,4
@@ -395,12 +395,12 @@ dcbt r5,r4 li r11,CACHE_LINE_SIZE+4 #endif /* MAX_COPY_PREFETCH */ -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ li r0,4096/CACHE_LINE_SIZE mtctr r0 1: -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx dcbt r11,r4 dcbz r5,r3 #endif
@@ -755,7 +755,7 @@ mfspr r3,PVR blr -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx _GLOBAL(_get_IMMR) mfspr r3, 638 blr
@@ -1005,7 +1005,7 @@ * and exceptions as if the cpu had performed the load or store. */ -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx) _GLOBAL(cvt_fd) lfs 0,0(r3) stfd 0,0(r4)
ppc/kernel/ppc-stub.c +2 -2
@@ -1,4 +1,4 @@ -/* $Id: ppc-stub.c,v 1.1 2001/03/26 09:09:51 esr Exp esr $ +/* $Id: ppc-stub.c,v 1.6 1999/08/12 22:18:11 cort Exp $ * ppc-stub.c: KGDB support for the Linux kernel. * * adapted from arch/sparc/kernel/sparc-stub.c for the PowerPC
@@ -749,7 +749,7 @@return 1 ; } -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx/* I don't know why other platforms don't need this. The function for * the 8xx is found in arch/ppc/8xx_io/uart.c. -- Dan
ppc/kernel/ppc_asm.h +3 -3
@@ -81,7 +81,7 @@* and they must be used. */ -#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_4xx) && !defined(CONFIG_CPU_PPC_88xx)#define tlbia \ li r4,1024; \ mtctr r4; \
@@ -114,7 +114,7 @@* we then have to make sure we preserve the top 32 bits except for * the 64-bit mode bit, which we clear. */ -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE #define FIX_SRR1 (ra, rb) \ mr rb,ra; \ mfmsr ra; \
@@ -129,4 +129,4 @@#define RFI rfi#define MTMSRD (r) mtmsr r#define CLR_TOP32 (r) -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */
ppc/kernel/ppc_htab.c +4 -4
@@ -1,5 +1,5 @@/* -* $Id: ppc_htab.c,v 1.1 2001/03/26 09:09:46 esr Exp esr $ +* $Id: ppc_htab.c,v 1.29 1999/09/10 05:05:50 paulus Exp $ * * PowerPC hash table management proc entry. Will show information * about the current hash table and will allow changes to it.
@@ -235,7 +235,7 @@static ssize_t ppc_htab_write (struct file * file,const char * buffer,size_t count,loff_t *ppos) { -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xxunsigned long tmp;if ( current->uid !=0 )return -EACCES ;
@@ -472,9 +472,9 @@reset_SDR1 ();#endif return count; -#else /* CONFIG_8xx */ +#else /* CONFIG_CPU_PPC_88xx */ return 0 ; -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ }
ppc/kernel/ppc_ksyms.c +6 -6
@@ -46,7 +46,7 @@#endif /* CONFIG_SMP */ #include <asm/time.h> -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#include "../8xx_io/commproc.h" #endif
@@ -92,7 +92,7 @@EXPORT_SYMBOL (kernel_flag);#endif /* CONFIG_SMP */ -#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_4xx) && !defined(CONFIG_CPU_PPC_88xx)EXPORT_SYMBOL_NOVERS (isa_io_base);EXPORT_SYMBOL_NOVERS (isa_mem_base);EXPORT_SYMBOL_NOVERS (pci_dram_offset);
@@ -100,7 +100,7 @@EXPORT_SYMBOL (ISA_DMA_THRESHOLD );EXPORT_SYMBOL_NOVERS (DMA_MODE_READ );EXPORT_SYMBOL (DMA_MODE_WRITE ); -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx#if defined(CONFIG_ALL_PPC )EXPORT_SYMBOL (_prep_type);EXPORT_SYMBOL (ucSystemType);
@@ -351,11 +351,11 @@EXPORT_SYMBOL (debugger_fault_handler);#endif -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xxEXPORT_SYMBOL (request_8xxirq);EXPORT_SYMBOL (cpm_install_handler);EXPORT_SYMBOL (cpm_free_handler); -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ EXPORT_SYMBOL (ret_to_user_hook);EXPORT_SYMBOL (do_softirq);
@@ -363,7 +363,7 @@EXPORT_SYMBOL (set_context);EXPORT_SYMBOL (mmu_context_overflow);EXPORT_SYMBOL_NOVERS (disarm_decr); -#if !defined(CONFIG_8xx) && !defined(CONFIG_4xx) +#if !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_CPU_PPC_4xx)extern long *intercept_table;EXPORT_SYMBOL (intercept_table);#endif
ppc/kernel/prom.c +4 -4
@@ -1,5 +1,5 @@/* -* $Id: prom.c,v 1.1 2001/03/26 09:09:41 esr Exp esr $ +* $Id: prom.c,v 1.79 1999/10/08 01:56:32 paulus Exp $ * * Procedures for interfacing to the Open Firmware PROM on * Power Macintosh computers.
@@ -485,7 +485,7 @@#endif } -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE /* * Set up a hash table with a set of entries in it to map the * first 64MB of RAM. This is used on 64-bit machines since
@@ -550,7 +550,7 @@make_pte (htab, hsize, addr +KERNELBASE , addr, _PAGE_ACCESSED | _PAGE_COHERENT | PP_RWXX); } -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ static __init void prom_instantiate_rtas (void )
@@ -701,7 +701,7 @@prom_instantiate_rtas (); -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE /* * Find out how much memory we have and allocate a * suitably-sized hash table.
ppc/kernel/setup.c +14 -14
@@ -1,5 +1,5 @@/* -* $Id: setup.c,v 1.1 2001/03/26 09:09:44 esr Exp esr $ +* $Id: setup.c,v 1.160 1999/10/08 01:56:38 paulus Exp $ * Common prep/pmac/chrp boot and setup code. */
@@ -26,11 +26,11 @@#include <asm/amigappc.h> #include <asm/smp.h> #include <asm/elf.h> -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#include <asm/mpc8xx.h> #include <asm/8xx_immap.h> #endif -#ifdef CONFIG_8260 +#ifdef CONFIG_CPU_PPC_8260 #include <asm/mpc8260.h> #include <asm/immap_8260.h> #endif
@@ -124,7 +124,7 @@* Maybe tie it to serial consoles, since this is really what * these processors use on existing boards. -- Dan */ -#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260 ) +#if !defined(CONFIG_CPU_PPC_4xx) && !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_CPU_PPC_8260 )struct screen_info screen_info = {0 ,25 ,/* orig-x, orig-y */ 0, /* unused */
@@ -148,7 +148,7 @@ { } -#else /* CONFIG_4xx || CONFIG_8xx */ +#else /* CONFIG_CPU_PPC_4xx || CONFIG_CPU_PPC_88xx */ /* We need this to satisfy some external references until we can * strip the kernel down.
@@ -164,7 +164,7 @@0 ,/* orig-video-isVGA */ 16 /* orig-video-points */ }; -#endif /* !CONFIG_4xx && !CONFIG_8xx */ +#endif /* !CONFIG_CPU_PPC_4xx && !CONFIG_CPU_PPC_88xx */ void machine_restart (char *cmd) {
@@ -327,7 +327,7 @@* Assume here that all clock rates are the same in a * smp system. -- Cort */ -#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260 ) +#if !defined(CONFIG_CPU_PPC_4xx) && !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_CPU_PPC_8260 )if ( have_of ) {struct device_node *cpu_node;
@@ -351,7 +351,7 @@ len +=sprintf (len+buffer,"clock\t\t: %dMHz\n" , *fp / 1000000); } -#endif /* !CONFIG_4xx && !CONFIG_8xx */ +#endif /* !CONFIG_CPU_PPC_4xx && !CONFIG_CPU_PPC_88xx */ if (ppc_md.setup_residual !=NULL ) {
@@ -448,7 +448,7 @@if ( ppc_md.progress ) ppc_md.progress ("id mach(): start" ,0x100 ); -#if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) && !defined(CONFIG_8260 ) +#if !defined(CONFIG_CPU_PPC_4xx) && !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_CPU_PPC_8260 )#ifndef CONFIG_MACH_SPECIFIC /* if we didn't get any bootinfo telling us what we are... */ if ( _machine ==0 )
@@ -559,16 +559,16 @@ __map_without_bats = 1; }#else -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)oak_init (r3, r4, r5, r6, r7); -#elif defined(CONFIG_8xx) +#elif defined(CONFIG_CPU_PPC_88xx)m8xx_init (r3, r4, r5, r6, r7); -#elif defined(CONFIG_8260 ) +#elif defined(CONFIG_CPU_PPC_8260 )m8260_init (r3, r4, r5, r6, r7);#else #error "No board type has been defined for identify_machine()!" -#endif /* CONFIG_4xx */ -#endif /* !CONFIG_4xx && !CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_4xx */ +#endif /* !CONFIG_CPU_PPC_4xx && !CONFIG_CPU_PPC_88xx */ /* Look for mem= option on command line */ if (strstr (cmd_line,"mem=" )) {
ppc/kernel/traps.c +3 -3
@@ -112,7 +112,7 @@return ; } -#if defined(CONFIG_8xx) && defined(CONFIG_PCI ) +#if defined(CONFIG_CPU_PPC_88xx) && defined(CONFIG_PCI )/* the qspan pci read routines can cause machine checks -- Cort */ bad_page_fault (regs, regs->dar,SIGBUS );return ;
@@ -254,7 +254,7 @@void ProgramCheckException (struct pt_regs *regs) { -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)unsigned int esr =mfspr (SPRN_ESR );if (esr &ESR_PTR ) {
@@ -343,7 +343,7 @@ regs->ccr&0x10000000?"Error=":"", regs->gpr[3]); } -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xxvoid SoftwareEmulation (struct pt_regs *regs) {
ppc/lib/string.S +8 -8
@@ -13,11 +13,11 @@ #include <asm/processor.h> #include <asm/errno.h> -#if defined(CONFIG_4xx) || defined(CONFIG_8xx) +#if defined(CONFIG_CPU_PPC_4xx) || defined(CONFIG_CPU_PPC_88xx) #define CACHE_LINE_SIZE 16 #define LG_CACHE_LINE_SIZE 4 #define MAX_COPY_PREFETCH 1 -#elif !defined(CONFIG_PPC64BRIDGE) +#elif !defined(CONFIG_PPC_64BRIDGE) #define CACHE_LINE_SIZE 32 #define LG_CACHE_LINE_SIZE 5 #define MAX_COPY_PREFETCH 4
@@ -25,7 +25,7 @@ #define CACHE_LINE_SIZE 128 #define LG_CACHE_LINE_SIZE 7 #define MAX_COPY_PREFETCH 1 -#endif /* CONFIG_4xx || CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_4xx || CONFIG_CPU_PPC_88xx */ #define COPY_16_BYTES \ lwz r7,4(r4); \
@@ -166,7 +166,7 @@ bdnz 4b 3: mtctr r9 li r7,4 -#if !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_88xx) 10: dcbz r7,r6 #else 10: stw r4, 4(r6)
@@ -271,7 +271,7 @@ mtctr r0 beq 63f 53: -#if !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_88xx) dcbz r11,r6 #endif COPY_16_BYTES
@@ -451,7 +451,7 @@ li r11,4 beq 63f -#if !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_88xx) /* Here we decide how far ahead to prefetch the source */ #if MAX_COPY_PREFETCH > 1 /* Heuristically, for large transfers we prefetch
@@ -470,11 +470,11 @@ li r3,CACHELINE_BYTES + 4 dcbt r11,r4 #endif /* MAX_COPY_PREFETCH */ -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ mtctr r0 53: -#if !defined(CONFIG_8xx) +#if !defined(CONFIG_CPU_PPC_88xx) dcbt r3,r4 dcbz r11,r6 #endif
ppc/mbxboot/Makefile +2 -2
@@ -27,13 +27,13 @@ TFTPIMAGE=/tftpboot/zImage.embedded -ifdef CONFIG_8xx +ifdef CONFIG_CPU_PPC_88xx ZLINKFLAGS = -T ../vmlinux.lds -Ttext 0x00180000 OBJECTS := head.o misc.o ../coffboot/zlib.o m8xx_tty.o CFLAGS = $(CPPFLAGS) -O2 -DSTDC_HEADERS -fno-builtin -DCONFIG_8xx endif -ifdef CONFIG_8260 +ifdef CONFIG_CPU_PPC_8260 ZLINKFLAGS = -T ../vmlinux.lds -Ttext 0x00400000 OBJECTS := head_8260.o misc.o ../coffboot/zlib.o m8260_tty.o embed_config.o CFLAGS = $(CPPFLAGS) -O2 -DSTDC_HEADERS -fno-builtin -DCONFIG_8260
ppc/mbxboot/embed_config.c +2 -2
@@ -4,10 +4,10 @@*/ #include <sys/types.h> #include <linux/config.h> -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#include <asm/mpc8xx.h> #endif -#ifdef CONFIG_8260 +#ifdef CONFIG_CPU_PPC_8260 #include <asm/mpc8260.h> #endif
ppc/mbxboot/misc.c +4 -4
@@ -1,7 +1,7 @@/* * misc.c * -* $Id: misc.c,v 1.1 2001/03/26 09:10:27 esr Exp esr $ +* $Id: misc.c,v 1.2 1999/09/14 05:55:29 dmalek Exp $ * * Adapted for PowerPC by Gary Thomas *
@@ -17,10 +17,10 @@#include <asm/page.h> #include <asm/processor.h> #include <asm/mmu.h> -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#include <asm/mpc8xx.h> #endif -#ifdef CONFIG_8260 +#ifdef CONFIG_CPU_PPC_8260 #include <asm/mpc8260.h> #endif
@@ -245,7 +245,7 @@unsigned long i;char *dp; -#ifdef CONFIG_8260 +#ifdef CONFIG_CPU_PPC_8260 /* I don't know why I didn't do it this way on the 8xx....... */ embed_config (bp);
ppc/mm/Makefile +1 -1
@@ -10,6 +10,6 @@ O_TARGET := mm.o obj-y := fault.o init.o mem_pieces.o extable.o -obj-$(CONFIG_4xx) += 4xx_tlb.o +obj-$(CONFIG_CPU_PPC_4xx) += 4xx_tlb.o include $(TOPDIR)/Rules.make
ppc/mm/fault.c +10 -10
@@ -64,7 +64,7 @@struct mm_struct *mm = current->mm;siginfo_t info;int code =SEGV_MAPERR ; -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)int is_write = error_code &ESR_DST ;#else int is_write =0 ;
@@ -79,20 +79,20 @@ error_code &=0x48200000 ; else is_write = error_code &0x02000000 ; -#endif /* CONFIG_4xx */ +#endif /* CONFIG_CPU_PPC_4xx */ #if defined(CONFIG_XMON ) || defined(CONFIG_KGDB )if (debugger_fault_handler && regs->trap ==0x300 ) {debugger_fault_handler (regs);return ; } -#if !defined(CONFIG_4xx) +#if !defined(CONFIG_CPU_PPC_4xx)if (error_code &0x00400000 ) {/* DABR match */ if (debugger_dabr_match (regs))return ; } -#endif /* !CONFIG_4xx */ +#endif /* !CONFIG_CPU_PPC_4xx */ #endif /* CONFIG_XMON || CONFIG_KGDB */ if (in_interrupt () || mm ==NULL ) {
@@ -112,13 +112,13 @@ good_area: code =SEGV_ACCERR ; -#if defined(CONFIG_6xx) +#if defined(CONFIG_CPU_PPC_6xx)if (error_code &0x95700000 )/* an error such as lwarx to I/O controller space, address matching DABR, eciwx, etc. */ goto bad_area; -#endif /* CONFIG_6xx */ -#if defined(CONFIG_8xx) +#endif /* CONFIG_CPU_PPC_6xx */ +#if defined(CONFIG_CPU_PPC_88xx)/* The MPC8xx seems to always set 0x80000000, which is * "undefined". Of those that can be set, this is the only * one which seems bad.
@@ -126,7 +126,7 @@if (error_code &0x10000000 )/* Guarded storage error. */ goto bad_area; -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ /* a write */ if (is_write) {
@@ -234,7 +234,7 @@die ("kernel access of bad area" , regs, sig); } -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx/* The pgtable.h claims some functions generically exist, but I * can't find them......
@@ -341,7 +341,7 @@ }return (retval); } -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ #if 0 /*
ppc/mm/init.c +41 -41
287 lines not on this page · raw message
ppc/xmon/Makefile +1 -1
@@ -2,7 +2,7 @@ O_TARGET := x.o -ifeq ($(CONFIG_8xx),y) +ifeq ($(CONFIG_CPU_PPC_88xx),y) obj-y := start_8xx.o xmon.o ppc-dis.o ppc-opc.o subr_prf.o setjmp.o else obj-y := start.o xmon.o ppc-dis.o ppc-opc.o subr_prf.o setjmp.o
ppc/xmon/privinst.h +1 -1
@@ -39,7 +39,7 @@ GSETSPR(275, sprg3) GSETSPR(282, ear) GSETSPR(287, pvr) -#ifndef CONFIG_8xx +#ifndef CONFIG_CPU_PPC_88xx GSETSPR(528, bat0u) GSETSPR(529, bat0l)GSETSPR (530 , bat1u)
ppc/xmon/xmon.c +6 -6
@@ -314,7 +314,7 @@ }store_inst ((void *) bp->address); } -#if !defined(CONFIG_8xx) && !defined(CONFIG_POWER4 ) +#if !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_POWER4 )if (dabr.enabled)set_dabr (dabr.address);if (iabr.enabled)
@@ -329,7 +329,7 @@struct bpt *bp;unsigned instr; -#if !defined(CONFIG_8xx) && !defined(CONFIG_POWER4 ) +#if !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_POWER4 )set_dabr (0 );set_iabr (0 );#endif
@@ -566,7 +566,7 @@ cmd =inchar ();switch (cmd) { -#if !defined(CONFIG_8xx) && !defined(CONFIG_POWER4 ) +#if !defined(CONFIG_CPU_PPC_88xx) && !defined(CONFIG_POWER4 )case 'd' : mode =7 ; cmd =inchar ();
@@ -875,7 +875,7 @@ }#endif -#ifndef CONFIG_PPC64BRIDGE +#ifndef CONFIG_PPC_64BRIDGE static void dump_hash_table_seg (unsigned seg,unsigned start,unsigned end) {
@@ -934,7 +934,7 @@ printf(" ... %x\n", last_va); } -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ static void dump_hash_table_seg (unsigned seg,unsigned start,unsigned end) {
@@ -992,7 +992,7 @@if (last_found) printf(" ... %x\n", last_va); } -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ static unsigned hash_ctx;static unsigned hash_start;
char/tty_io.c +4 -4
@@ -2178,11 +2178,11 @@con_init ();#endif #ifdef CONFIG_SERIAL_CONSOLE -#if (defined(CONFIG_8xx) || defined(CONFIG_8260 )) +#if (defined(CONFIG_CPU_PPC_88xx) || defined(CONFIG_CPU_PPC_8260 ))console_8xx_init ();#elif defined(CONFIG_SERIAL )serial_console_init (); -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ #ifdef CONFIG_SGI_SERIAL sgi_serial_console_init ();#endif
@@ -2330,9 +2330,9 @@#ifdef CONFIG_RIO rio_init ();#endif -#if (defined(CONFIG_8xx) || defined(CONFIG_8260 )) +#if (defined(CONFIG_CPU_PPC_88xx) || defined(CONFIG_CPU_PPC_8260 ))rs_8xx_init (); -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ pty_init ();#ifdef CONFIG_MOXA_SMARTIO mxser_init ();
asm-ppc/cache.h +4 -4
@@ -9,8 +9,8 @@#include <asm/processor.h> /* bytes per L1 cache line */ -#if !defined(CONFIG_8xx) || defined(CONFIG_8260 ) -#if defined(CONFIG_PPC64BRIDGE ) +#if !defined(CONFIG_CPU_PPC_88xx) || defined(CONFIG_CPU_PPC_8260 ) +#if defined(CONFIG_PPC_64BRIDGE )#define L1_CACHE_BYTES 128#else #define L1_CACHE_BYTES 32
@@ -46,7 +46,7 @@#define L2CACHE_NONE 0x03/* NONE */ #define L2CACHE_PARITY 0x08/* Mask for L2 Cache Parity Protected bit */ -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx/* Cache control on the MPC8xx is provided through some additional * special purpose registers. */
@@ -81,7 +81,7 @@#define DC_DFWT 0x40000000/* Data cache is forced write through */ #define DC_LES 0x20000000/* Caches are little endian mode */ -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ #endif #endif /* __KERNEL__ */
asm-ppc/io.h +3 -3
@@ -20,11 +20,11 @@#define PREP_ISA_MEM_BASE 0xc0000000#define PREP_PCI_DRAM_OFFSET 0x80000000 -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)#include <asm/board.h> -#elif defined(CONFIG_8xx) +#elif defined(CONFIG_CPU_PPC_88xx)#include <asm/mpc8xx.h> -#elif defined(CONFIG_8260 ) +#elif defined(CONFIG_CPU_PPC_8260 )#include <asm/mpc8260.h> #else /* 4xx/8xx/8260 */ #ifdef CONFIG_APUS
asm-ppc/irq.h +6 -6
@@ -10,7 +10,7 @@extern void disable_irq_nosync (unsigned int );extern void enable_irq (unsigned int ); -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)/* * The PowerPC 403 cores' Asynchronous Interrupt Controller (AIC) has
@@ -50,7 +50,7 @@ return (irq); } -#elif defined(CONFIG_8xx) +#elif defined(CONFIG_CPU_PPC_88xx)/* The MPC8xx cores have 16 possible interrupts. There are eight * possible level sensitive interrupts assigned and generated internally
@@ -120,7 +120,7 @@ return irq; } -#else /* CONFIG_4xx + CONFIG_8xx */ +#else /* CONFIG_CPU_PPC_4xx + CONFIG_CPU_PPC_88xx */ #if defined(CONFIG_APUS )/*
@@ -169,11 +169,11 @@*/ #define NR_IRQS 256 -#ifndef CONFIG_8260 +#ifndef CONFIG_CPU_PPC_8260 #define NUM_8259_INTERRUPTS 16 -#else /* CONFIG_8260 */ +#else /* CONFIG_CPU_PPC_8260 */ /* The 8260 has an internal interrupt controller with a maximum of * 64 IRQs. We will use NR_IRQs from above since it is large enough.
@@ -198,7 +198,7 @@#define SIU_INT_SCC3 ((uint)0x2a)#define SIU_INT_SCC4 ((uint)0x2b) -#endif /* CONFIG_8260 */ +#endif /* CONFIG_CPU_PPC_8260 */ /* * This gets called from serial.c, which is now used on
asm-ppc/mmu.h +9 -9
@@ -15,20 +15,20 @@/* Hardware Page Table Entry */ typedef struct _PTE { -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE unsigned long long vsid:52; unsigned long api:5; unsigned long :5; unsigned long h:1; unsigned long v:1; unsigned long long rpn:52; -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ unsigned long v:1; /* Entry is valid */ unsigned long vsid:24; /* Virtual segment identifier */ unsigned long h:1; /* Hash algorithm indicator */ unsigned long api:6; /* Abbreviated page index */ unsigned long rpn:20; /* Real (physical) page number */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ unsigned long :3; /* Unused */ unsigned long r:1; /* Referenced */ unsigned long c:1; /* Changed */
@@ -69,11 +69,11 @@ }P601_BATU ; typedef struct _BATU { /* Upper part of BAT (all except 601) */ -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE unsigned long long bepi:47; -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ unsigned long bepi:15; /* Effective page index (virtual address) */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ unsigned long :4; /* Unused */ unsigned long bl:11; /* Block size mask */ unsigned long vs:1; /* Supervisor valid */
@@ -88,11 +88,11 @@ }P601_BATL ; typedef struct _BATL { /* Lower part of BAT (all except 601) */ -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE unsigned long long brpn:47; -#else /* CONFIG_PPC64BRIDGE */ +#else /* CONFIG_PPC_64BRIDGE */ unsigned long brpn:15; /* Real page index (physical address) */ -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ unsigned long :10; /* Unused */ unsigned long w:1; /* Write-thru cache */ unsigned long i:1; /* Cache inhibit */
asm-ppc/mmu_context.h +1 -1
@@ -23,7 +23,7 @@static inline void enter_lazy_tlb (struct mm_struct *mm,struct task_struct *tsk,unsigned cpu) { } -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#define NO_CONTEXT 16#define LAST_CONTEXT 15#define MUNGE_CONTEXT (n) (n)
asm-ppc/mpc8260.h +2 -2
@@ -11,7 +11,7 @@#include <linux/config.h> -#ifdef CONFIG_8260 +#ifdef CONFIG_CPU_PPC_8260 #ifdef CONFIG_EST8260 #include <asm/est8260.h>
@@ -39,6 +39,6 @@const char *device, void *dev_id); -#endif /* CONFIG_8260 */ +#endif /* CONFIG_CPU_PPC_8260 */ #endif #endif /* __KERNEL__ */
asm-ppc/mpc8xx.h +2 -2
@@ -11,7 +11,7 @@#include <linux/config.h> -#ifdef CONFIG_8xx +#ifdef CONFIG_CPU_PPC_88xx#ifdef CONFIG_MBX #include <asm/mbx.h>
@@ -82,6 +82,6 @@unsigned long flags, const char *device, void *dev_id); -#endif /* CONFIG_8xx */ +#endif /* CONFIG_CPU_PPC_88xx */ #endif #endif /* __KERNEL__ */
asm-ppc/pgtable.h +5 -5
@@ -11,7 +11,7 @@#include <asm/mmu.h> #include <asm/page.h> -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)extern void local_flush_tlb_all (void );extern void local_flush_tlb_mm (struct mm_struct *mm);extern void local_flush_tlb_page (struct vm_area_struct *vma,unsigned long vmaddr);
@@ -19,7 +19,7 @@ unsigned long end);static inline void flush_hash_page (unsigned context,unsigned long va) { } -#elif defined(CONFIG_8xx) +#elif defined(CONFIG_CPU_PPC_88xx)#define __tlbia () asm volatile ("tlbia" : : )static inline void local_flush_tlb_all (void )
@@ -179,7 +179,7 @@* (hardware-defined) PowerPC PTE as closely as possible. */ -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)/* Definitions for 4xx embedded chips. */ #define _PAGE_GUARDED 0x001/* G: page is guarded from prefetch */ #define _PAGE_COHERENT 0x002/* M: enforece memory coherence */
@@ -193,7 +193,7 @@#define _PAGE_HWWRITE 0x800/* software: _PAGE_RW & _PAGE_DIRTY */ #define _PAGE_SHARED 0 -#elif defined(CONFIG_8xx) +#elif defined(CONFIG_CPU_PPC_88xx)/* Definitions for 8xx embedded chips. */ #define _PAGE_PRESENT 0x0001/* Page is valid */ #define _PAGE_NO_CACHE 0x0002/* I: cache inhibit */
@@ -211,7 +211,7 @@#define _PAGE_HWWRITE 0x0100/* C: page changed (write protect) */ #define _PAGE_USER 0x0800/* One of the PP bits, the other must be 0 */ -#else /* CONFIG_6xx */ +#else /* CONFIG_CPU_PPC_6xx */ /* Definitions for 60x, 740/750, etc. */ #define _PAGE_PRESENT 0x001/* software: pte contains a translation */ #define _PAGE_USER 0x002/* matches one of the PP bits */
asm-ppc/processor.h +4 -4
@@ -15,10 +15,10 @@/* Machine State Register (MSR) Fields */ -#ifdef CONFIG_PPC64BRIDGE +#ifdef CONFIG_PPC_64BRIDGE #define MSR_SF (1<<63)#define MSR_ISF (1<<61) -#endif /* CONFIG_PPC64BRIDGE */ +#endif /* CONFIG_PPC_64BRIDGE */ #define MSR_VEC (1<<25)/* Enable AltiVec */ #define MSR_POW (1<<18)/* Enable Power Management */ #define MSR_WE (1<<18)/* Wait State Enable */
@@ -700,7 +700,7 @@#endif /* ndef ASSEMBLY*/ #ifdef CONFIG_MACH_SPECIFIC -#if defined(CONFIG_8xx) +#if defined(CONFIG_CPU_PPC_88xx)#define _machine _MACH_8xx#define have_of 0#elif defined(CONFIG_OAK )
@@ -712,7 +712,7 @@#elif defined(CONFIG_APUS )#define _machine _MACH_apus#define have_of 0 -#elif defined(CONFIG_8260 ) +#elif defined(CONFIG_CPU_PPC_8260 )#define _machine _MACH_8260#define have_of 0#else
asm-ppc/time.h +5 -5
@@ -1,5 +1,5 @@/* -* $Id: time.h,v 1.1 2001/03/26 08:33:59 esr Exp esr $ +* $Id: time.h,v 1.12 1999/08/27 04:21:23 cort Exp $ * Common time prototypes and such for all ppc machines. * * Written by Cort Dougan ([email protected]) to merge
@@ -26,7 +26,7 @@/* Accessor functions for the decrementer register. */ static __inline__unsigned int get_dec (void ) { -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)return (mfspr (SPRN_PIT ));#else return (mfspr (SPRN_DEC ));
@@ -35,10 +35,10 @@static __inline__void set_dec (unsigned int val) { -#if defined(CONFIG_4xx) +#if defined(CONFIG_CPU_PPC_4xx)mtspr (SPRN_PIT , val);#else -#ifdef CONFIG_8xx_CPU6 +#ifdef CONFIG_CPU_PPC_8xx_CPU6set_dec_cpu6 (val);#else mtspr (SPRN_DEC , val);
@@ -48,7 +48,7 @@/* Accessor functions for the timebase (RTC on 601) registers. */ /* If one day CONFIG_POWER is added just define __USE_RTC as 1 */ -#ifdef CONFIG_6xx +#ifdef CONFIG_CPU_PPC_6xxextern __inline__int const __USE_RTC (void ) {return (mfspr (SPRN_PVR )>>16 ) ==1 ; }
End of diffs.
Signature · 6 lines
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a> In every country and in every age, the priest has been hostile to liberty. He is always in alliance with the despot, abetting his abuses in return for protection to his own. -- Thomas Jefferson, 1814
Quoted 4 lines · Eric S. Raymond
(2) Fix up 20 cris-architecture configuration symbols lacking a
CONFIG_prefix, so they obey CML1/CML2 conventions and can be detected by `make dep', also static-analysis tools and consistency checkers. This is a BUG FIX in CML1.
No need for you to fret on this; it's partly fixed in the version in Alan's tree and the rest will be cleaned up in our next update.
-Bjorn
Bjorn Wesen <[email protected]>:
Quoted 8 lines · Eric S. Raymond
Quoted 4 lines
(2) Fix up 20 cris-architecture configuration symbols lacking a
CONFIG_prefix, so they obey CML1/CML2 conventions and can be detected by `make dep', also static-analysis tools and consistency checkers. This is a BUG FIX in CML1.No need for you to fret on this; it's partly fixed in the version in Alan's tree and the rest will be cleaned up in our next update.
Good! That will simplify my life a lot. Assuming Linus takes that ac patch.
Greg Banks may have suggested a tolerable solution to the other problem. I'm working on it now.
Signature · 5 lines
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a> There's a truism that the road to Hell is often paved with good intentions. The corollary is that evil is best known not by its motives but by its *methods*.
Quoted 2 lines · esr
OK, since peoples' territorial instincts have started to lather up, I guess I'm going to have to do this the hard way...
"Split up your patch" still apparently hasn't filtered into your head. Since that is more difficult than posting a single patch, I would say you are doing it the slack way, and the way that makes it more difficult for Linus and Alan to approve one part of your patch, and disapprove of another part.
Quoted 5 lines
This file is a patch expressed in two ways. First, procedurally, as a way to duplicate its effects on any kernel source tree. Secondly, as an explicit patch against 2.4.3-pre8. It replaces my previous patch against 2.4.3-pre6.
Quoted 8 lines
This patch is the first result of a consistency audit of the configuration system. I have been building analysis tools to check the correctness of my CML2 rules file, and the processs of testing them turned up some problems.
The purpose of this patch is threefold:
(1) Clean up two errors in the CML1 corpus that could lead to subtle bugs. This is a BUG FIX in CML1.
separate patch?
Quoted 4 lines
(2) Fix up 20 cris-architecture configuration symbols lacking a
CONFIG_prefix, so they obey CML1/CML2 conventions and can be detected by `make dep', also static-analysis tools and consistency checkers. This is a BUG FIX in CML1.
separate patch?
What did the cris guys say, when you showed them this patch?
I agree this change is a bug fix, but get the cris' guys input first.
This should be in a separate patch, too.
Quoted 3 lines
(3) Fix up 10 configuration symbols of the form CONFIG_[0-9]*; specific changes are those suggested 8 Jan 2001 by PPC port maintainer Tom Rini. This change has been APPROVED by an authorized maintainer.
Maybe I am not caught up with the times... I thought Cort Dougan was the overall PowerPC maintainer. That's what MAINTAINERS says.
Anyway, this is up to the PowerPC guys, but I disagree with this change nonetheless. MandrakeSoft has a PPC port, and as I mentioned earlier, some utilities in the build process etc. look at CONFIG_xxx.
PPC guys: this is a gratuitous renaming change that is not required. If you have been following the "CML1 cleanup patch" thread, you see that Eric is blindly dictating policy when he says that CONFIG_[0-9] needs to be cleaned up.
Quoted 9 lines
This leaves ten symbols in a form that breaks CML2. I'll go after the other individual maintainers about those. Sigh....
No actual object code will be changed by this patch; it merely does one-to-one substitutions on some configuration symbols.
Let me repeat that. This patch changes *no* object code. None. However, merging it before the 2.5 fork will save me (and probably Alan) some nasty large headaches later on...
Object code changes are not the only thing we are concerned with in a stable series.
Let me repeat myself for the cheap seats: Changing the 2.4.xCONFIG_xxx namespace changes the source code API provided to other kernel code. It affects software not in the Linux kernel tree.
Your changes (1) and (2) sound ok. Your change (3) is gratuitous, based on policy change discussed with no one, and does not belong in stable series 2.4.x.
Linus, Alan, Cort, please consider rejecting Eric's patch while it contains (3).
Thanks,
Jeff
Signature · 3 lines
Jeff Garzik | May you have warm words on a cold evening, Building 1024 | a full moon on a dark night, MandrakeSoft | and a smooth road all the way to your door.
Quoted 8 lines · Jeff Garzik
Quoted 3 lines · esr
(3) Fix up 10 configuration symbols of the form CONFIG_[0-9]*; specific changes are those suggested 8 Jan 2001 by PPC port maintainer Tom Rini. This change has been APPROVED by an authorized maintainer.
Maybe I am not caught up with the times... I thought Cort Dougan was the overall PowerPC maintainer. That's what
MAINTAINERSsays.
Yes. Cort is indeed the overall, head PPC guy. Paul M does a lot too. :) However, all of these name changes have gone past not only those two, but a large portion of the PPC kernel community as well. Everyone likes 'em, or at least agrees they aren't bad changes.
Quoted 3 lines
Anyway, this is up to the PowerPC guys, but I disagree with this change nonetheless. MandrakeSoft has a PPC port, and as I mentioned earlier, some utilities in the build process etc. look at
CONFIG_xxx.
Yes, they do. Which is partily why I was actually going to wait until 2.5 for many of these to come in.
Quoted 4 lines
PPC guys: this is a gratuitous renaming change that is not required. If you have been following the "CML1 cleanup patch" thread, you see that Eric is blindly dictating policy when he says that CONFIG_[0-9] needs to be cleaned up.
The counter point to this is what does "CONFIG_6xx" or 8xx mean? It's as bad as CONFIG_Mxxx imho :)
Quoted 10 lines
Quoted 9 lines
This leaves ten symbols in a form that breaks CML2. I'll go after the other individual maintainers about those. Sigh....
No actual object code will be changed by this patch; it merely does one-to-one substitutions on some configuration symbols.
Let me repeat that. This patch changes *no* object code. None. However, merging it before the 2.5 fork will save me (and probably Alan) some nasty large headaches later on...
Quoted 5 lines
Object code changes are not the only thing we are concerned with in a stable series.
Let me repeat myself for the cheap seats: Changing the 2.4.xCONFIG_xxxnamespace changes the source code API provided to other kernel code. It affects software not in the Linux kernel tree.
Yes. Symbol changes should be a 2.5 thing anyways.
Signature · 2 lines
Tom Rini (TR1265) http://gate.crashing.org/~trini/
Quoted 8 lines · Tom Rini
Quoted 4 lines · Jeff Garzik
PPC guys: this is a gratuitous renaming change that is not required. If you have been following the "CML1 cleanup patch" thread, you see that Eric is blindly dictating policy when he says that CONFIG_[0-9] needs to be cleaned up.
The counter point to this is what does "
CONFIG_6xx" or 8xx mean? It's as bad asCONFIG_Mxxximho :)
No argument.. :) I definitely encourage namespace cleanup in 2.5 -- but please don't change an identifier just because it begins with a numeric prefix... Change it because it needs to be changed.
Best regards,
Jeff
Signature · 3 lines
Jeff Garzik | May you have warm words on a cold evening, Building 1024 | a full moon on a dark night, MandrakeSoft | and a smooth road all the way to your door.