Changeset ebb3538 in mainline for kernel/arch/arm64/src/arm64.c


Ignore:
Timestamp:
2021-09-15T15:01:03Z (3 years ago)
Author:
Martin Decky <martin@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ecac7e
Parents:
8ce56a6
Message:

Improve early kernel debugging prints

Since the early kernel debugging prints are useful only in a few
debugging scenarios, define a configuration option that disables them by
default (if enabled, it produces duplicate output which might be
confusing).

Implement early kernel debugging prints for the HiKey960.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm64/src/arm64.c

    r8ce56a6 rebb3538  
    4040#include <arch/exception.h>
    4141#include <arch/machine_func.h>
     42#include <console/console.h>
    4243#include <interrupt.h>
    4344#include <proc/scheduler.h>
     
    256257}
    257258
     259void early_putuchar(char32_t c)
     260{
     261#ifdef CONFIG_DEBUG_EARLY_PRINT
     262        if (c == '\n')
     263                machine_early_uart_output('\r');
     264
     265        machine_early_uart_output(c);
     266#endif
     267}
     268
    258269/** @}
    259270 */
Note: See TracChangeset for help on using the changeset viewer.