drop unneeded __ROMCC__ checks when the check for __PRE_RAM__ is more
authorStefan Reinauer <stepan@coresystems.de>
Sun, 28 Mar 2010 21:26:54 +0000 (21:26 +0000)
committerStefan Reinauer <stepan@openbios.org>
Sun, 28 Mar 2010 21:26:54 +0000 (21:26 +0000)
appropriate. Also, factor out post_code() for __PRE_RAM__ code and drop it from
some mainboards.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5307 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

31 files changed:
src/arch/i386/include/arch/cpu.h
src/arch/i386/include/arch/hlt.h
src/arch/i386/include/arch/io.h
src/arch/i386/lib/console.c
src/arch/i386/lib/console_print.c
src/include/cpu/amd/dualcore.h
src/include/cpu/amd/mtrr.h
src/include/cpu/amd/quadcore.h
src/include/cpu/x86/cache.h
src/include/cpu/x86/lapic.h
src/include/cpu/x86/msr.h
src/include/cpu/x86/mtrr.h
src/include/cpu/x86/tsc.h
src/include/stdlib.h
src/include/string.h
src/mainboard/amd/mahogany_fam10/romstage.c
src/mainboard/amd/serengeti_cheetah_fam10/romstage.c
src/mainboard/dell/s1850/reset.c
src/mainboard/intel/eagleheights/reset.c
src/mainboard/intel/jarrell/reset.c
src/mainboard/supermicro/h8dmr_fam10/romstage.c
src/mainboard/supermicro/h8qme_fam10/romstage.c
src/mainboard/supermicro/x6dai_g/reset.c
src/mainboard/supermicro/x6dhe_g/reset.c
src/mainboard/supermicro/x6dhe_g2/reset.c
src/mainboard/supermicro/x6dhr_ig/reset.c
src/mainboard/supermicro/x6dhr_ig2/reset.c
src/mainboard/tyan/s2912_fam10/romstage.c
src/northbridge/via/cn400/cn400.h
src/northbridge/via/cn700/cn700.h
src/northbridge/via/vx800/vx800.h

index d43c847cefcaf82891f4364ecb030db0b19ce02e..47d4baf63b56a5095d43ce85e0f22a22ad423ece 100644 (file)
@@ -104,7 +104,7 @@ static inline unsigned int cpuid_edx(unsigned int op)
 #define X86_VENDOR_SIS       10 
 #define X86_VENDOR_UNKNOWN 0xff
 
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__) && defined( __GNUC__)
+#if !defined(__PRE_RAM__)
 #include <device/device.h>
 
 
index 931e933fc70260ce996308684bfa4e22b951a788..ddfe1699546eff7e14bce1a146a97e7bb924d722 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef ARCH_HLT_H
 #define ARCH_HLT_H
 
-#if defined( __ROMCC__) && !defined(__PRE_RAM__) && !defined(__GNUC__)
+#if defined(__ROMCC__)
 static void hlt(void)
 {
        __builtin_hlt();
index e2e15ec7622c82a0dcfbf96c5c23d6958e8542af..3a76579fbc7cd207e79f148eab5296b9f8d77faa 100644 (file)
@@ -9,7 +9,7 @@
  * (insb/insw/insl/outsb/outsw/outsl). You can also use "pausing"
  * versions of the single-IO instructions (inb_p/inw_p/..).
  */
-#if defined( __ROMCC__ ) && !defined (__GNUC__)
+#if defined(__ROMCC__)
 static inline void outb(uint8_t value, uint16_t port)
 {
        __builtin_outb(value, port);
@@ -42,7 +42,6 @@ static inline uint32_t inl(uint16_t port)
        return __builtin_inl(port);
 }
 #else
-
 static inline void outb(uint8_t value, uint16_t port)
 {
        __asm__ __volatile__ ("outb %b0, %w1" : : "a" (value), "Nd" (port));
@@ -78,8 +77,7 @@ static inline uint32_t inl(uint16_t port)
        __asm__ __volatile__ ("inl %w1, %0" : "=a"(value) : "Nd" (port));
        return value;
 }
-
-#endif /* __ROMCC__ && !__GNUC__*/
+#endif /* __ROMCC__ */
 
 static inline void outsb(uint16_t port, const void *addr, unsigned long count)
 {
@@ -136,6 +134,7 @@ static inline void insl(uint16_t port, void *addr, unsigned long count)
                );
 }
 
+#if 0
 /* XXX XXX XXX This is a story from the evil API from hell XXX XXX XXX
  * We have different functions for memory access in pre-ram stage and ram
  * stage. Those in pre-ram stage are called write32 and expect the address
@@ -173,6 +172,7 @@ static inline uint32_t readl(const volatile void *addr)
 {
        return *(volatile uint32_t *) addr;
 }
+#endif
 
 #if !defined(__PRE_RAM__)
 static inline __attribute__((always_inline)) uint8_t read8(unsigned long addr)
index 15d65a31c73226b2e5cf62b62ef968a2b3890cef..69b5a66f38aa94797a221f034a74a75c8c1efda2 100644 (file)
@@ -19,6 +19,19 @@ void console_init(void)
        print_info(console_test);
 }
 
+
+void post_code(u8 value)
+{
+#if !defined(CONFIG_NO_POST) || CONFIG_NO_POST==0
+#if CONFIG_SERIAL_POST==1
+       print_emerg("POST: 0x");
+       print_emerg_hex8(value);
+       print_emerg("\r\n");
+#endif
+       outb(value, 0x80);
+#endif
+}
+
 void die(const char *str)
 {
        print_emerg(str);
index 0aa540d153673b718160af45425351b1c9aad59e..2acec2308ac3df89c1c06405c49b2da068d3ae57 100644 (file)
@@ -62,10 +62,6 @@ static void __console_tx_string(int loglevel, const char *str)
        }
 }
 
-/* Actually this should say defined(__ROMCC__) but that define is explicitly
- * set in some romstage.c files to trigger the simple device_t version to be used.
- * So __GNUCC__ does the right thing here.
- */
 #if defined (__ROMCC__)
 #define STATIC
 #else
index 1d338406686bde2a93405b53b46fb82dd58abf16..58cf945aba1fb40e7f399daa82bfbe270a6a3053 100644 (file)
@@ -15,7 +15,7 @@ struct node_core_id {
 struct node_core_id get_node_core_id(unsigned int nb_cfg_54);
 #endif
 
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 struct device;
 unsigned get_apicid_base(unsigned ioapic_num);
 void amd_sibling_init(struct device *cpu);
index d86655dcdd6f5bf74b641c3d6ec97e999460c6de..c7b3fcae7d33b4352e00405c11c1482154df5d15 100644 (file)
@@ -31,8 +31,8 @@
 #define TOP_MEM_MASK                   0x007fffff
 #define TOP_MEM_MASK_KB                        (TOP_MEM_MASK >> 10)
 
-#if !defined( __ROMCC__ ) && !defined (ASSEMBLY) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__) && !defined(ASSEMBLY)
 void amd_setup_mtrrs(void);
-#endif /* __ROMCC__ */
+#endif
 
 #endif /* CPU_AMD_MTRR_H */
index f7b2d09a191902d59dfc7b249e131312bac74404..7bf84b4bce916b4f3e19a0cb49f2122685b88637 100644 (file)
@@ -34,7 +34,7 @@ struct node_core_id {
 struct node_core_id get_node_core_id(u32 nb_cfg_54);
 #endif
 
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 struct device;
 u32 get_apicid_base(u32 ioapic_num);
 void amd_sibling_init(struct device *cpu);
index 22bd1e7e47e80309a123aed87eae324faa9b908d..55d39382dbd6fa751c568042621065b050c6935f 100644 (file)
@@ -41,8 +41,8 @@ static inline void disable_cache(void)
        wbinvd();
 }
 
-#if !defined( __ROMCC__) && !defined(__PRE_RAM__) && defined (__GNUC__)
+#if !defined(__PRE_RAM__)
 void x86_enable_cache(void);
-#endif /* !__ROMCC__ */
+#endif
 
 #endif /* CPU_X86_CACHE */
index de99deebfe6691bf1e563e3592b165ee95f08b42..8b44a6cb662ff752d45677e66fdf3d99de7a63a0 100644 (file)
@@ -69,7 +69,7 @@ static inline __attribute__((always_inline)) void stop_this_cpu(void)
 void stop_this_cpu(void);
 #endif
 
-#if ! defined (__ROMCC__) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 
 #define xchg(ptr,v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v),(ptr),sizeof(*(ptr))))
 
@@ -106,7 +106,6 @@ static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz
        return x;
 }
 
-
 static inline void lapic_write_atomic(unsigned long reg, unsigned long v)
 {
        xchg((volatile unsigned long *)(LAPIC_DEFAULT_BASE+reg), v);
@@ -150,14 +149,11 @@ static inline int lapic_remote_read(int apicid, int reg, unsigned long *pvalue)
 
 void setup_lapic(void);
 
-
 #if CONFIG_SMP == 1
 struct device;
 int start_cpu(struct device *cpu);
-
 #endif /* CONFIG_SMP */
 
-
-#endif /* !__ROMCC__ && !__PRE_RAM__ */
+#endif /* !__PRE_RAM__ */
 
 #endif /* CPU_X86_LAPIC_H */
index 69b4d8e78ae65e0e48a656afe441b2196ae3fed2..cbbd5cfd855a7a338365f13d69020eaacacc532e 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef CPU_X86_MSR_H
 #define CPU_X86_MSR_H
 
-#if defined( __ROMCC__)
+#if defined(__ROMCC__)
 
 typedef __builtin_msr_t msr_t;
 
@@ -45,5 +45,4 @@ static inline void wrmsr(unsigned index, msr_t msr)
 
 #endif /* __ROMCC__ */
 
-
 #endif /* CPU_X86_MSR_H */
index 2243fe30800138f48ae90bae4e919f58de19a84f..2da2beefc92a31bff67d6cf5277fb6ecf1daacf7 100644 (file)
 #define MTRRfix4K_F8000_MSR 0x26f
 
 
-#if !defined(__ROMCC__) && !defined (ASSEMBLY) && !defined(__PRE_RAM__)
-
+#if !defined (ASSEMBLY) && !defined(__PRE_RAM__)
 #include <device/device.h>
-
 void enable_fixed_mtrr(void);
 void x86_setup_var_mtrrs(unsigned address_bits);
 void x86_setup_mtrrs(unsigned address_bits);
 int x86_mtrr_check(void);
 void set_var_mtrr_resource(void *gp, struct device *dev, struct resource *res);
 void x86_setup_fixed_mtrrs(void);
-
-#endif /* __ROMCC__ */
+#endif
 
 
 #endif /* CPU_X86_MTRR_H */
index 5531993f7d9f279963432793c296b01e956d092a..c57362755a5b2afecc1d0d682ddee52302b497e0 100644 (file)
@@ -17,7 +17,8 @@ static inline tsc_t rdtsc(void)
        return res;
 }
 
-#if !defined( __ROMCC__ ) && !defined (__PRE_RAM__)
+#if !defined(__ROMCC__)
+/* Too many registers for ROMCC */
 static inline unsigned long long rdtscll(void)
 {
        unsigned long long val;
index 8742fdfe85a06b175e7339978c705e8517225e20..45420d78764068de6f37852c0585b66ea756372b 100644 (file)
@@ -11,7 +11,7 @@
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 void *malloc(size_t size);
 void free(void *ptr);
 #endif
index 9e3c08450ee8c5c9dff02ec90abe7a34ff85e22f..b4edf432ac613bc00fefdc9c35661de20aa225d7 100644 (file)
@@ -8,7 +8,7 @@ void *memcpy(void *dest, const void *src, size_t n);
 void *memmove(void *dest, const void *src, size_t n);
 void *memset(void *s, int c, size_t n);
 int memcmp(const void *s1, const void *s2, size_t n);
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 int sprintf(char * buf, const char *fmt, ...);
 #endif
 
@@ -41,7 +41,7 @@ static inline char *strchr(const char *s, int c)
        return 0;
 }
 
-#if !defined( __ROMCC__ ) && !defined(__PRE_RAM__)
+#if !defined(__PRE_RAM__)
 static inline char *strdup(const char *s)
 {   
        size_t sz = strlen(s) + 1;
index f6c862443a11812e1763dbd6fe553c498fe0c2d8..5198a638b32021ba4f3a48f49cdc1119b0c8a30f 100644 (file)
 #include <cpu/x86/lapic.h>
 #include "option_table.h"
 #include "pc80/mc146818rtc_early.c"
-
-/* FIXME: Use console.c post_code function */
-static void post_code(u8 value) {
-       outb(value, 0x80);
-}
-
 #include "arch/i386/lib/console.c"
 #include "pc80/serial.c"
 #include "lib/ramtest.c"
index 8244746c1ed11cb9f628f94c29bf2e54eed66709..fa65000b8900a4f0291d98a3aa7bd2c1cc2a39ab 100644 (file)
 #include <cpu/x86/lapic.h>
 #include "option_table.h"
 #include "pc80/mc146818rtc_early.c"
-
-/* FIXME: Use console.c post_code function */
-static void post_code(u8 value) {
-       outb(value, 0x80);
-}
-
 #include "arch/i386/lib/console.c"
 #include "pc80/serial.c"
 #include "lib/ramtest.c"
index d00e6181a9a898a69c68a326600f2ebbb5ea382f..745f187cae97bf2b54635f2d7c6cc06dd72e6b2c 100644 (file)
@@ -1,18 +1,6 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/pci.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#else
+#if defined (__PRE_RAM__)
 #include <arch/romcc_io.h>
 #endif
 
@@ -20,6 +8,7 @@ void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
index 1388bcf6b4db4189762176fe34b3359870100ca1..006c746dbb315b6e3f39ca7cce8dd3032d64507d 100644 (file)
 
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
+#if defined (__PRE_RAM__)
+#include <arch/romcc_io.h>
 #endif
 
 void soft_reset(void)
index 3b79e439e24a6a904058e99e8f60701b6e3f8a1a..fb379bd37293f7e62a53e3c521a0d3f9e9ea6a0f 100644 (file)
@@ -1,42 +1,25 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
+#include <arch/romcc_io.h>
 
 void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
         outb(0x06, 0xcf9);
 }
+
 void full_reset(void)
 {
-       device_t dev;
        /* Enable power on after power fail... */
-       dev = pci_locate_device(PCI_ID(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801ER_LPC), 0);
-       if (dev != PCI_DEV_INVALID) {
-               unsigned byte;
-               byte = pci_read_config8(dev, 0xa4);
-               byte &= 0xfe;
-               pci_write_config8(dev, 0xa4, byte);
-               
-       }
+       unsigned byte;
+       byte = pci_read_config8(PCI_DEV(0, 0x1f, 0), 0xa4);
+       byte &= 0xfe;
+       pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xa4, byte);
         outb(0x0e, 0xcf9);
 }
 
index 114e3c6fbe181d3fdf1ae62da4dec6ace46c5ef3..51c29d4e0437ea3d891f5ab2fc24fe2154294384 100644 (file)
 
 // for enable the FAN
 #include "southbridge/nvidia/mcp55/mcp55_early_smbus.c"
-
-static void post_code(u8 value) {
-       outb(value, 0x80);
-}
-
 #include "pc80/serial.c"
 #include "arch/i386/lib/console.c"
 #include "lib/ramtest.c"
index 8c56a499063d55df67e0583d2965935de33924a2..7014713601f413f568ec0e11fda93a1cbbb0d37b 100644 (file)
 // for enable the FAN
 #include "southbridge/nvidia/mcp55/mcp55_early_smbus.c"
 
-static void post_code(u8 value) {
-       outb(value, 0x80);
-}
-
 #include "pc80/serial.c"
 #include "arch/i386/lib/console.c"
 #include "lib/ramtest.c"
index 1ac210e2d2a7bb483cd1b5b87cfdb90eb28b474c..2f21605e7c6ae398173fa8254e514b5c79d857f9 100644 (file)
@@ -1,20 +1,5 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
 
 void soft_reset(void)
 {
index 1ac210e2d2a7bb483cd1b5b87cfdb90eb28b474c..1b1bc68d4b83302b71a4f57810b91a42121b2f9f 100644 (file)
@@ -1,25 +1,11 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
 
 void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
index 1ac210e2d2a7bb483cd1b5b87cfdb90eb28b474c..1b1bc68d4b83302b71a4f57810b91a42121b2f9f 100644 (file)
@@ -1,25 +1,11 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
 
 void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
index 1ac210e2d2a7bb483cd1b5b87cfdb90eb28b474c..1b1bc68d4b83302b71a4f57810b91a42121b2f9f 100644 (file)
@@ -1,25 +1,11 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
 
 void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
index 1ac210e2d2a7bb483cd1b5b87cfdb90eb28b474c..1b1bc68d4b83302b71a4f57810b91a42121b2f9f 100644 (file)
@@ -1,25 +1,11 @@
 #include <arch/io.h>
 #include <reset.h>
-#include <device/pci_def.h>
-#include <device/pci_ids.h>
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
-#include <device/device.h>
-#include <device/pci.h>
-#include <device/pci_ops.h>
-#define PCI_ID(VENDOR_ID, DEVICE_ID) \
-       ((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
-#define PCI_DEV_INVALID 0
-
-static inline device_t pci_locate_device(unsigned pci_id, device_t from)
-{
-       return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
-}
-#endif
 
 void soft_reset(void)
 {
         outb(0x04, 0xcf9);
 }
+
 void hard_reset(void)
 {
         outb(0x02, 0xcf9);
index e75ef0780c0fcc3c6770901ba48db5b57227f6fd..bdcb9fd0cd26e7663f7d49766e1856376921fe3c 100644 (file)
 #include <cpu/x86/lapic.h>
 #include "option_table.h"
 #include "pc80/mc146818rtc_early.c"
-
-static void post_code(u8 value) {
-       outb(value, 0x80);
-}
-
 #include "pc80/serial.c"
 #include "arch/i386/lib/console.c"
 #if CONFIG_USBDEBUG_DIRECT
index 06367db27064a45145e26864f3301d43d2c4af0b..3c9e8fd52a955d12be1bf8981c5b21a0e48f067e 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef __ROMCC__
+#ifndef __PRE_RAM__
 static void cn400_noop(void)
 {
 }
index 400aaf308a852daa972b7c05afac961b80dd51c7..df139cef35e5e9aa350ebb4976e59dba831b49f4 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#if !defined (__ROMCC__) && !defined (__PRE_RAM__)
+#if !defined (__PRE_RAM__)
 static void cn700_noop()
 {
 }
index f23974342e322429e8d17d2c57c66950e89977b2..5e1c4df205b218d97329c0097ad23adb839fce54 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef VX800_H
 #define  VX800_H 1
 
-#ifndef __ROMCC__
+#ifndef __PRE_RAM__
 static void vx800_noop()
 {
 }