diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-17 17:58:46 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-05-17 17:58:46 +0200 |
commit | 07f029b4b7d3d6d8e5fb4dfc1198b6ae6880fb56 (patch) | |
tree | 8bd3f56414be09cfc336adb8f5d99e56f3eff2a4 /src/console.c | |
parent | d6b64c65a0d09dba96a65edd2959bd58fe781fcc (diff) | |
download | abaos-07f029b4b7d3d6d8e5fb4dfc1198b6ae6880fb56.tar.gz abaos-07f029b4b7d3d6d8e5fb4dfc1198b6ae6880fb56.tar.bz2 |
better magic signature detection (using a compile stamp with date and time)
using local labels where possible, some renames in assembly code
added a console_put_hex and serial_put_hex
better call to qemu printing the status of the host when crashing the emulator
Diffstat (limited to 'src/console.c')
-rw-r--r-- | src/console.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/console.c b/src/console.c index ef4c36f..ea57d07 100644 --- a/src/console.c +++ b/src/console.c @@ -43,6 +43,17 @@ void console_put_string( console_t *console, const char *s ) } } +void console_put_hex( console_t *console, const uint32_t v ) +{ + if( console->vga != NULL ) { + vga_put_hex( console->vga, v ); + } + + if( console->serial != NULL ) { + serial_put_hex( console->serial, v ); + } +} + void console_put_newline( console_t *console ) { if( console->vga != NULL ) { |