aboutsummaryrefslogtreecommitdiff
path: root/core/drivers/serial8250_uart.c
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2017-03-31 14:38:17 +0200
committerEtienne Carriere <etienne.carriere@linaro.org>2017-03-31 14:38:17 +0200
commit8d94060ae272f7461905b504642fc16341a222af (patch)
treef325e54135c3afd9d690fb314d1f3f191add3623 /core/drivers/serial8250_uart.c
parent68f38a1e68b0ca191e8c1760c523d7c51287b3fd (diff)
core: fix console drivers against pager
Console operations structures must be kept in the unpaged sections when pager is enable. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Etienne Carriere <etienne.carriere@linaro.org> (qemu_virt)
Diffstat (limited to 'core/drivers/serial8250_uart.c')
-rw-r--r--core/drivers/serial8250_uart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/drivers/serial8250_uart.c b/core/drivers/serial8250_uart.c
index 36909cdd..5e861581 100644
--- a/core/drivers/serial8250_uart.c
+++ b/core/drivers/serial8250_uart.c
@@ -26,9 +26,10 @@
*/
#include <compiler.h>
-#include <drivers/serial8250_uart.h>
#include <console.h>
+#include <drivers/serial8250_uart.h>
#include <io.h>
+#include <keep.h>
#include <util.h>
/* uart register defines */
@@ -104,6 +105,7 @@ static const struct serial_ops serial8250_uart_ops = {
.have_rx_data = serial8250_uart_have_rx_data,
.putc = serial8250_uart_putc,
};
+KEEP_PAGER(serial8250_uart_ops);
void serial8250_uart_init(struct serial8250_uart_data *pd, paddr_t base,
uint32_t __unused uart_clk,