@@ -15,8 +15,6 @@
#include <processor.h>
#include <cpu.h>
-static char *con_buf = (char *)INMEM_CON_START;
-
/*
* Skiboot is both the producer and consumer of the memcons. On the consumer
* side we need to keep track of how much of the log buffer has been written
@@ -92,7 +90,7 @@ struct dt_node *add_opal_console_node(int index, const char *type,
void clear_console(void)
{
- memset(con_buf, 0, INMEM_CON_LEN);
+ memset(memcons.obuf, 0, memcons.obuf_size);
}
/*
@@ -162,7 +160,7 @@ static bool __flush_console(bool flush_to_drivers, bool need_unlock)
req = memcons.out_pos - flush_head;
unlock(&con_lock);
- len = con_driver->write(con_buf + flush_head, req);
+ len = con_driver->write(memcons.obuf + flush_head, req);
lock(&con_lock);
flush_head = (flush_head + len) % INMEM_CON_OUT_LEN;
We can use the buffer pointer in memcons instead. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- core/console.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)