diff options
| author | Russell King <rmk@flint.arm.linux.org.uk> | 2003-04-28 02:56:26 +0100 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2003-04-28 02:56:26 +0100 |
| commit | ef76bbd297ef62cbfbb9e04e038b41364cf27374 (patch) | |
| tree | 6842847780dbc54be7341eebf0a4ff6d256897f7 | |
| parent | d37d9068570fe5177134e0ee75273ec01d9be5b3 (diff) | |
[ARM] Remove check_bugs()
check_bugs() has never been used to detect buggy ARM CPUs. Therefore
is no point in passing it to the per-cpu support code.
| -rw-r--r-- | arch/arm/mm/proc-arm1020.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm2_3.S | 6 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm6_7.S | 16 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm720.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm920.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm922.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-arm926.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-sa110.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-sa1100.S | 10 | ||||
| -rw-r--r-- | arch/arm/mm/proc-xscale.S | 10 | ||||
| -rw-r--r-- | include/asm-arm/bugs.h | 4 | ||||
| -rw-r--r-- | include/asm-arm/cpu-multi26.h | 3 | ||||
| -rw-r--r-- | include/asm-arm/cpu-multi32.h | 5 | ||||
| -rw-r--r-- | include/asm-arm/cpu-single.h | 2 |
14 files changed, 3 insertions, 113 deletions
diff --git a/arch/arm/mm/proc-arm1020.S b/arch/arm/mm/proc-arm1020.S index 7eca56b7debf..875035e0c070 100644 --- a/arch/arm/mm/proc-arm1020.S +++ b/arch/arm/mm/proc-arm1020.S @@ -66,15 +66,6 @@ .text /* - * cpu_arm1020_check_bugs() - */ -ENTRY(cpu_arm1020_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_arm1020_proc_init() */ ENTRY(cpu_arm1020_proc_init) @@ -486,7 +477,6 @@ __arm1020_setup: .type arm1020_processor_functions, #object arm1020_processor_functions: .word v4t_early_abort - .word cpu_arm1020_check_bugs .word cpu_arm1020_proc_init .word cpu_arm1020_proc_fin .word cpu_arm1020_reset diff --git a/arch/arm/mm/proc-arm2_3.S b/arch/arm/mm/proc-arm2_3.S index 69b584489135..4ecce02b2c09 100644 --- a/arch/arm/mm/proc-arm2_3.S +++ b/arch/arm/mm/proc-arm2_3.S @@ -273,9 +273,6 @@ _arm2_xchg_4: mov r2, pc _arm3_xchg_4: swp r0, r0, [r1] movs pc, lr -_arm2_3_check_bugs: - bics pc, lr, #0x04000000 @ Clear FIQ disable bit - cpu_arm2_name: .asciz "ARM 2" cpu_arm250_name: @@ -290,7 +287,6 @@ cpu_arm3_name: */ .globl arm2_processor_functions arm2_processor_functions: - .word _arm2_3_check_bugs .word _arm2_proc_init .word _arm2_proc_fin .word _arm2_set_pgd @@ -299,7 +295,6 @@ arm2_processor_functions: .globl arm250_processor_functions arm250_processor_functions: - .word _arm2_3_check_bugs .word _arm2_proc_init .word _arm2_proc_fin .word _arm2_set_pgd @@ -308,7 +303,6 @@ arm250_processor_functions: .globl arm3_processor_functions arm3_processor_functions: - .word _arm2_3_check_bugs .word _arm3_proc_init .word _arm3_proc_fin .word _arm3_set_pgd diff --git a/arch/arm/mm/proc-arm6_7.S b/arch/arm/mm/proc-arm6_7.S index ef62add1cda6..9f37920f7165 100644 --- a/arch/arm/mm/proc-arm6_7.S +++ b/arch/arm/mm/proc-arm6_7.S @@ -188,20 +188,6 @@ Ldata_lateldrpostreg: addeq r7, r0, r2 b Ldata_saver7 -/* - * Function: arm6_7_check_bugs (void) - * : arm6_7_proc_init (void) - * : arm6_7_proc_fin (void) - * - * Notes : This processor does not require these - */ -ENTRY(cpu_arm6_check_bugs) -ENTRY(cpu_arm7_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - ENTRY(cpu_arm6_proc_init) ENTRY(cpu_arm7_proc_init) mov pc, lr @@ -313,7 +299,6 @@ __arm7_setup: mov r0, #0 .type arm6_processor_functions, #object ENTRY(arm6_processor_functions) .word cpu_arm6_data_abort - .word cpu_arm6_check_bugs .word cpu_arm6_proc_init .word cpu_arm6_proc_fin .word cpu_arm6_reset @@ -346,7 +331,6 @@ ENTRY(arm6_processor_functions) .type arm7_processor_functions, #object ENTRY(arm7_processor_functions) .word cpu_arm7_data_abort - .word cpu_arm7_check_bugs .word cpu_arm7_proc_init .word cpu_arm7_proc_fin .word cpu_arm7_reset diff --git a/arch/arm/mm/proc-arm720.S b/arch/arm/mm/proc-arm720.S index d2f4ba58da42..70ea6283de5c 100644 --- a/arch/arm/mm/proc-arm720.S +++ b/arch/arm/mm/proc-arm720.S @@ -38,18 +38,11 @@ #include <asm/hardware.h> /* - * Function: arm720_check_bugs (void) - * : arm720_proc_init (void) + * Function: arm720_proc_init (void) * : arm720_proc_fin (void) * * Notes : This processor does not require these */ -ENTRY(cpu_arm720_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - ENTRY(cpu_arm720_dcache_clean_area) ENTRY(cpu_arm720_proc_init) mov pc, lr @@ -156,7 +149,6 @@ __arm720_setup: mov r0, #0 .type arm720_processor_functions, #object ENTRY(arm720_processor_functions) .word v4t_late_abort - .word cpu_arm720_check_bugs .word cpu_arm720_proc_init .word cpu_arm720_proc_fin .word cpu_arm720_reset diff --git a/arch/arm/mm/proc-arm920.S b/arch/arm/mm/proc-arm920.S index a1b48a09a6a9..c0a8ca3de3fd 100644 --- a/arch/arm/mm/proc-arm920.S +++ b/arch/arm/mm/proc-arm920.S @@ -58,15 +58,6 @@ .text /* - * cpu_arm920_check_bugs() - */ -ENTRY(cpu_arm920_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_arm920_proc_init() */ ENTRY(cpu_arm920_proc_init) @@ -426,7 +417,6 @@ __arm920_setup: .type arm920_processor_functions, #object arm920_processor_functions: .word v4t_early_abort - .word cpu_arm920_check_bugs .word cpu_arm920_proc_init .word cpu_arm920_proc_fin .word cpu_arm920_reset diff --git a/arch/arm/mm/proc-arm922.S b/arch/arm/mm/proc-arm922.S index 4cce1d2c87d7..f06ad84e4c83 100644 --- a/arch/arm/mm/proc-arm922.S +++ b/arch/arm/mm/proc-arm922.S @@ -60,15 +60,6 @@ .text /* - * cpu_arm922_check_bugs() - */ -ENTRY(cpu_arm922_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_arm922_proc_init() */ ENTRY(cpu_arm922_proc_init) @@ -430,7 +421,6 @@ __arm922_setup: .type arm922_processor_functions, #object arm922_processor_functions: .word v4t_early_abort - .word cpu_arm922_check_bugs .word cpu_arm922_proc_init .word cpu_arm922_proc_fin .word cpu_arm922_reset diff --git a/arch/arm/mm/proc-arm926.S b/arch/arm/mm/proc-arm926.S index dc524cd2dc85..e4080b1defee 100644 --- a/arch/arm/mm/proc-arm926.S +++ b/arch/arm/mm/proc-arm926.S @@ -50,15 +50,6 @@ .text /* - * cpu_arm926_check_bugs() - */ -ENTRY(cpu_arm926_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_arm926_proc_init() */ ENTRY(cpu_arm926_proc_init) @@ -445,7 +436,6 @@ __arm926_setup: .type arm926_processor_functions, #object arm926_processor_functions: .word v5tej_early_abort - .word cpu_arm926_check_bugs .word cpu_arm926_proc_init .word cpu_arm926_proc_fin .word cpu_arm926_reset diff --git a/arch/arm/mm/proc-sa110.S b/arch/arm/mm/proc-sa110.S index b6d75c9129de..55efcba42c79 100644 --- a/arch/arm/mm/proc-sa110.S +++ b/arch/arm/mm/proc-sa110.S @@ -43,15 +43,6 @@ flush_base: .text /* - * cpu_sa110_check_bugs() - */ -ENTRY(cpu_sa110_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_sa110_proc_init() */ ENTRY(cpu_sa110_proc_init) @@ -222,7 +213,6 @@ __sa110_setup: .type sa110_processor_functions, #object ENTRY(sa110_processor_functions) .word v4_early_abort - .word cpu_sa110_check_bugs .word cpu_sa110_proc_init .word cpu_sa110_proc_fin .word cpu_sa110_reset diff --git a/arch/arm/mm/proc-sa1100.S b/arch/arm/mm/proc-sa1100.S index c8a8af4cd77d..f063bf10c099 100644 --- a/arch/arm/mm/proc-sa1100.S +++ b/arch/arm/mm/proc-sa1100.S @@ -54,15 +54,6 @@ flush_base: .long FLUSH_BASE .text -/* - * cpu_sa1100_check_bugs() - */ -ENTRY(cpu_sa1100_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - __INIT /* @@ -251,7 +242,6 @@ __sa1100_setup: .type sa1100_processor_functions, #object ENTRY(sa1100_processor_functions) .word v4_early_abort - .word cpu_sa1100_check_bugs .word cpu_sa1100_proc_init .word cpu_sa1100_proc_fin .word cpu_sa1100_reset diff --git a/arch/arm/mm/proc-xscale.S b/arch/arm/mm/proc-xscale.S index 51ee9ea63b8f..5c353c7f7eb4 100644 --- a/arch/arm/mm/proc-xscale.S +++ b/arch/arm/mm/proc-xscale.S @@ -108,15 +108,6 @@ clean_addr: .word CLEAN_ADDR .text /* - * cpu_xscale_check_bugs() - */ -ENTRY(cpu_xscale_check_bugs) - mrs ip, cpsr - bic ip, ip, #PSR_F_BIT - msr cpsr, ip - mov pc, lr - -/* * cpu_xscale_proc_init() * * Nothing too exciting at the moment @@ -621,7 +612,6 @@ __xscale_setup: .type xscale_processor_functions, #object ENTRY(xscale_processor_functions) .word xscale_abort - .word cpu_xscale_check_bugs .word cpu_xscale_proc_init .word cpu_xscale_proc_fin .word cpu_xscale_reset diff --git a/include/asm-arm/bugs.h b/include/asm-arm/bugs.h index 2f7b33b10334..14a4e05eee8c 100644 --- a/include/asm-arm/bugs.h +++ b/include/asm-arm/bugs.h @@ -1,7 +1,7 @@ /* * linux/include/asm-arm/bugs.h * - * Copyright (C) 1995 Russell King + * Copyright (C) 1995-2003 Russell King * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -12,6 +12,6 @@ #include <asm/proc-fns.h> -#define check_bugs() cpu_check_bugs() +#define check_bugs() do { } while (0) #endif diff --git a/include/asm-arm/cpu-multi26.h b/include/asm-arm/cpu-multi26.h index fc8d9a215ebc..b237d5770238 100644 --- a/include/asm-arm/cpu-multi26.h +++ b/include/asm-arm/cpu-multi26.h @@ -19,8 +19,6 @@ struct task_struct; * relies on it. */ extern struct processor { - /* check for any bugs */ - void (*_check_bugs)(void); /* Set up any processor specifics */ void (*_proc_init)(void); /* Disable any processor specifics */ @@ -36,7 +34,6 @@ extern const struct processor arm2_processor_functions; extern const struct processor arm250_processor_functions; extern const struct processor arm3_processor_functions; -#define cpu_check_bugs() processor._check_bugs() #define cpu_proc_init() processor._proc_init() #define cpu_proc_fin() processor._proc_fin() #define cpu_do_idle() do { } while (0) diff --git a/include/asm-arm/cpu-multi32.h b/include/asm-arm/cpu-multi32.h index bb8b5bb19041..00f936197ad9 100644 --- a/include/asm-arm/cpu-multi32.h +++ b/include/asm-arm/cpu-multi32.h @@ -24,10 +24,6 @@ extern struct processor { */ void (*_data_abort)(unsigned long pc); /* - * check for any bugs - */ - void (*_check_bugs)(void); - /* * Set up any processor specifics */ void (*_proc_init)(void); @@ -62,7 +58,6 @@ extern struct processor { void (*set_pte)(pte_t *ptep, pte_t pte); } processor; -#define cpu_check_bugs() processor._check_bugs() #define cpu_proc_init() processor._proc_init() #define cpu_proc_fin() processor._proc_fin() #define cpu_reset(addr) processor.reset(addr) diff --git a/include/asm-arm/cpu-single.h b/include/asm-arm/cpu-single.h index 30394b11876e..c75c98454d50 100644 --- a/include/asm-arm/cpu-single.h +++ b/include/asm-arm/cpu-single.h @@ -22,7 +22,6 @@ * function pointers for this lot. Otherwise, we can optimise the * table away. */ -#define cpu_check_bugs __cpu_fn(CPU_NAME,_check_bugs) #define cpu_proc_init __cpu_fn(CPU_NAME,_proc_init) #define cpu_proc_fin __cpu_fn(CPU_NAME,_proc_fin) #define cpu_reset __cpu_fn(CPU_NAME,_reset) @@ -39,7 +38,6 @@ struct mm_struct; /* declare all the functions as extern */ -extern void cpu_check_bugs(void); extern void cpu_proc_init(void); extern void cpu_proc_fin(void); extern int cpu_do_idle(void); |
