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_test15.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_test15.c')
-rw-r--r-- | util/romcc/tests/simple_test15.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/util/romcc/tests/simple_test15.c b/util/romcc/tests/simple_test15.c deleted file mode 100644 index d02eaefd35..0000000000 --- a/util/romcc/tests/simple_test15.c +++ /dev/null @@ -1,47 +0,0 @@ -static void outb(unsigned char value, unsigned short port) -{ - __builtin_outb(value, port); -} - -static unsigned char inb(unsigned short port) -{ - return __builtin_inb(port); -} -static int uart_can_tx_byte(void) -{ - return inb(0x3f8 + 0x05) & 0x20; -} - -static void uart_wait_to_tx_byte(void) -{ - while(!uart_can_tx_byte()) - ; -} - -static void uart_wait_until_sent(void) -{ - while(!(inb(0x3f8 + 0x05) & 0x40)) - ; -} - -static void uart_tx_byte(unsigned char data) -{ - uart_wait_to_tx_byte(); - outb(data, 0x3f8 + 0x00); - - uart_wait_until_sent(); -} - -static void print_debug(const char *str) -{ - unsigned char ch; - while((ch = *str++) != '\0') { - uart_tx_byte(ch); - } -} - -static void main(void) -{ - print_debug("one\r\n"); - print_debug("two\r\n"); -} |