Get rid of a number of __GNUC__ checks
In the process of streamlining coreboot code and getting rid of unneeded ifdefs, drop a number of unneeded checks for the GNU C compiler. This also cleans up x86emu/types.h significantly by dropping all the duplicate types in there. Change-Id: I0bf289e149ed02e5170751c101adc335b849a410 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/3226 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
This commit is contained in:
committed by
Ronald G. Minnich
parent
b8b3e8bff3
commit
c5e036a043
@@ -28,11 +28,7 @@
|
||||
#define VT8237R_SMBUS_IO_BASE 0x400
|
||||
/* 0x0 disabled, 0x2 reserved, 0xf = IRQ15 */
|
||||
#define VT8237R_ACPI_IRQ 0x9
|
||||
#if defined(__GNUC__)
|
||||
#define VT8237S_SPI_MEM_BASE 0xfed02000ULL
|
||||
#else
|
||||
#define VT8237S_SPI_MEM_BASE 0xfed02000UL
|
||||
#endif
|
||||
|
||||
/* PMBASE FIXME mostly taken from ich7 */
|
||||
#define PM1_STS 0x00
|
||||
@@ -129,11 +125,7 @@ struct vt8237_network_rom {
|
||||
u8 cfg_c;
|
||||
u8 cfg_d;
|
||||
u8 checksum;
|
||||
}
|
||||
#if defined(__GNUC__)
|
||||
__attribute__ ((packed))
|
||||
#endif
|
||||
;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
#define MAINBOARD_POWER_OFF 0
|
||||
#define MAINBOARD_POWER_ON 1
|
||||
|
Reference in New Issue
Block a user