From: Graeme Russ Date: Thu, 25 Mar 2010 22:22:56 +1100 Subject: [U-Boot] [RFC][PATCH 14/21] [x86] Provide weak PC/AT compatibility setup function In-Reply-To: <1269516183-9306-1-git-send-email-graeme.russ@gmail.com> References: <1269516183-9306-1-git-send-email-graeme.russ@gmail.com> Message-ID: <1269516183-9306-15-git-send-email-graeme.russ@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de It is possibly to setup x86 boards to use non-PC/AT configurations. For example, the sc520 is an x86 CPU with PC/AT and non-PC/AT peripherals. This function allows the board to set itself up for maximum PC/AT compatibility just before booting the Linux kernel (the Linux kernel 'just works' if everything is PC/AT compliant) --- include/asm-i386/u-boot-i386.h | 2 ++ lib_i386/board.c | 8 ++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/asm-i386/u-boot-i386.h b/include/asm-i386/u-boot-i386.h index 7c99c8c..2bce82e 100644 --- a/include/asm-i386/u-boot-i386.h +++ b/include/asm-i386/u-boot-i386.h @@ -43,6 +43,8 @@ int cpu_init_interrupts(void); int board_init(void); int dram_init(void); +void setup_pcat_compatibility(void); + void isa_unmap_rom(u32 addr); u32 isa_map_rom(u32 bus_addr, int size); diff --git a/lib_i386/board.c b/lib_i386/board.c index 7115a2f..b852ed1 100644 --- a/lib_i386/board.c +++ b/lib_i386/board.c @@ -441,3 +441,11 @@ unsigned long do_go_exec (ulong (*entry)(int, char *[]), int argc, char *argv[]) return (entry) (argc, argv); } + +void setup_pcat_compatibility(void) + __attribute__((weak, alias("__setup_pcat_compatibility"))); + +void __setup_pcat_compatibility(void) +{ +} + -- 1.7.0.2.182.ge007