From 488065df1de76d41e2b7f88decd9744099653643 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 20 Sep 2011 22:02:14 +0000 Subject: Late spring cleaning of the arm code for old dusty bits we do not want to keep: - remove bootconfig parameter passing feature (unused). - unifdef __PROG32 and remove all remains of arm26 code. - remove ARMFPE support (unused). - remove support for ARM2, ARM2AS, ARM3, ARM6, ARM7, ARM7TDMI and StrongARM processor families, and the related silicon bug workarounds (especially the SA-110 STM^ bug). - remove cpu_functions no longer necessary after previous removals. - remove ARM32_DISABLE_ALIGNMENT_FAULTS option (unused). - make FIQ support conditional on option FIQ (unused, but may be eventually). Discussed with drahn@ and jasper@ long ago, I was sitting on this commit for no good reason. --- sys/arch/beagle/beagle/autoconf.c | 4 ++-- sys/arch/beagle/include/bootconfig.h | 15 +++------------ 2 files changed, 5 insertions(+), 14 deletions(-) (limited to 'sys/arch/beagle') diff --git a/sys/arch/beagle/beagle/autoconf.c b/sys/arch/beagle/beagle/autoconf.c index bd82d8af3d5..3ab3a815231 100644 --- a/sys/arch/beagle/beagle/autoconf.c +++ b/sys/arch/beagle/beagle/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.2 2010/11/28 20:44:20 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.3 2011/09/20 22:02:13 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.2 2001/09/05 16:17:36 matt Exp $ */ /* @@ -49,11 +49,11 @@ #include #include #include + #include #include struct device *bootdv = NULL; -extern char *boot_file; void dumpconf(void); diff --git a/sys/arch/beagle/include/bootconfig.h b/sys/arch/beagle/include/bootconfig.h index 6786d5207d1..bb612488a51 100644 --- a/sys/arch/beagle/include/bootconfig.h +++ b/sys/arch/beagle/include/bootconfig.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bootconfig.h,v 1.2 2010/02/07 18:47:45 drahn Exp $ */ +/* $OpenBSD: bootconfig.h,v 1.3 2011/09/20 22:02:13 miod Exp $ */ /* $NetBSD: bootconfig.h,v 1.2 2001/06/21 22:08:28 chris Exp $ */ /* @@ -43,13 +43,13 @@ * Based on kate/boot/bootconfig.h */ +#if defined(_KERNEL) || defined(_STANDALONE) + typedef struct _PhysMem { u_int address; u_int pages; } PhysMem; -#if defined(_KERNEL) || defined(_STANDALONE) - #define DRAM_BLOCKS 2 typedef struct _BootConfig { @@ -60,17 +60,8 @@ typedef struct _BootConfig { extern BootConfig bootconfig; #define MAX_BOOT_STRING 255 -#define BOOTOPT_TYPE_BOOLEAN 0 -#define BOOTOPT_TYPE_STRING 1 -#define BOOTOPT_TYPE_INT 2 -#define BOOTOPT_TYPE_BININT 3 -#define BOOTOPT_TYPE_HEXINT 4 -#define BOOTOPT_TYPE_MASK 7 - #endif /* _KERNEL || _STANDALONE */ #if defined(_KERNEL) -int get_bootconf_option (char *string, char *option, int type, void *result); - extern char *boot_args; extern char *boot_file; #endif /* _KERNEL */ -- cgit v1.2.3