From d1849cb5e3b8c714c2dae78bb15465f288707ac5 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 3 Nov 2017 16:30:35 -0700 Subject: Remove the platform interface We now automatically detect everything that the platform interface used to be used for, so it's now obsolete! --- machine/mtrap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'machine/mtrap.c') diff --git a/machine/mtrap.c b/machine/mtrap.c index dba3613..0f77def 100644 --- a/machine/mtrap.c +++ b/machine/mtrap.c @@ -8,7 +8,6 @@ #include "finisher.h" #include "fdt.h" #include "unprivileged_memory.h" -#include "platform_interface.h" #include "disabled_hart_mask.h" #include #include @@ -23,7 +22,7 @@ static uintptr_t mcall_console_putchar(uint8_t ch) { if (uart) { uart_putchar(ch); - } else if (platform__use_htif()) { + } else if (htif) { htif_console_putchar(ch); } return 0; @@ -33,7 +32,7 @@ void poweroff(uint16_t code) { printm("Power off\n"); finisher_exit(code); - if (platform__use_htif()) { + if (htif) { htif_poweroff(); } else { while (1); @@ -74,7 +73,7 @@ static uintptr_t mcall_console_getchar() { if (uart) { return uart_getchar(); - } else if (platform__use_htif()) { + } else if (htif) { return htif_console_getchar(); } else { return '\0'; -- cgit v1.1