diff --git a/src/system/boot/platform/u-boot/serial.cpp b/src/system/boot/platform/u-boot/serial.cpp index 28f8406c93..88300e5a82 100644 --- a/src/system/boot/platform/u-boot/serial.cpp +++ b/src/system/boot/platform/u-boot/serial.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -91,8 +92,10 @@ serial_cleanup(void) extern "C" void serial_init(void) { + static char sUARTBuffer[sizeof(Uart8250)]; + // Setup information on uart - gLoaderUART = new(nothrow) Uart8250(uart_base_debug()); + gLoaderUART = new(sUARTBuffer) Uart8250(uart_base_debug()); if (gLoaderUART == 0) return;