diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2019-11-28 16:14:56 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-12-27 09:00:16 +0000 |
commit | 945b698f82279fdb42f83f6a3eb2e6f74db2869c (patch) | |
tree | 3eac3bd7ec5032441081d89a370acddf8f3e5f5b /util/romcc/tests/simple_test34.c | |
parent | c2092569d5d21e0cdd3690d8021c2d46dfeaeabd (diff) |
util/romcc: Drop romcc support
Finally all boards use a GCC compiled bootblock!
Change-Id: I0c9a1b19dbdc32b43875da7d685718bae9d7f5f4
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37337
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Jacob Garber <jgarber1@ualberta.ca>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/romcc/tests/simple_test34.c')
-rw-r--r-- | util/romcc/tests/simple_test34.c | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/util/romcc/tests/simple_test34.c b/util/romcc/tests/simple_test34.c deleted file mode 100644 index 3c2b606fc2..0000000000 --- a/util/romcc/tests/simple_test34.c +++ /dev/null @@ -1,71 +0,0 @@ - -typedef __builtin_msr_t msr_t; - -static msr_t rdmsr(unsigned long index) -{ - return __builtin_rdmsr(index); -} - -static void uart_tx_byte(unsigned char data) -{ - while(!(__builtin_inb(0x3f8 + 0x05) & 0x20)) - ; - __builtin_outb(data, 0x3f8 + 0x00); - - while(!(__builtin_inb(0x3f8 + 0x05) & 0x40)) - ; -} - - -static void print_nibble(unsigned nibble) -{ - unsigned char digit; - digit = nibble + '0'; - if (digit > '9') { - digit += 39; - } - uart_tx_byte(digit); -} - -static void print_debug_hex32(unsigned int value) -{ - print_nibble((value >> 28U) & 0x0fU); - print_nibble((value >> 24U) & 0x0fU); - print_nibble((value >> 20U) & 0x0fU); - print_nibble((value >> 16U) & 0x0fU); - print_nibble((value >> 12U) & 0x0fU); - print_nibble((value >> 8U) & 0x0fU); - print_nibble((value >> 4U) & 0x0fU); - print_nibble(value & 0x0fU); -} - -static void print_debug(const char *str) -{ - unsigned char ch; - while((ch = *str++) != '\0') { - uart_tx_byte(ch); - } -} - -static void main(void) -{ - unsigned long start, stop; - msr_t msr; - msr = rdmsr(0xC001001A); - print_debug("TOP_MEM: "); - print_debug_hex32(msr.hi); - print_debug_hex32(msr.lo); - print_debug("\r\n"); - - start = 0; - stop = msr.lo; - print_debug("Testing DRAM : "); - print_debug_hex32(start); - print_debug("-"); - print_debug_hex32(stop); - print_debug("\r\n"); - - print_debug("DRAM verify: "); - print_debug_hex32(start); - print_debug_hex32(stop); -} |