History log of /seL4-test-master/kernel/src/machine/io.c
Revision Date Author Comments
# 7dc4209f 05-May-2020 Saer Debel <saer.debel@data61.csiro.au>

Revised kernel printf implementation

Adapted musl printf implementation using our output abstraction.
Floating point specifiers are not supported in this adaptation.
Modified the code to also match our style and make it
less unnecessarily complex.

Signed-off-by: Saer Debel <saer.debel@data61.csiro.au>


# 9dad7382 05-Apr-2020 Saer Debel <saer.debel@data61.csiro.au>

userError string written to IPC buffer

The format string in userError is now written to
the IPC buffer for debugging purposes.
This requires an snprintf which reuses vprintf with
a new structure for handling how output is done.

Signed-off-by: Saer Debel <saer.debel@data61.csiro.au>


# 79da0792 01-Mar-2020 Gerwin Klein <gerwin.klein@data61.csiro.au>

Convert license tags to SPDX identifiers

This commit also converts our own copyright headers to directly use
SPDX, but leaves all other copyright header intact, only adding the
SPDX ident. As far as possible this commit also merges multiple
Data61 copyright statements/headers into one for consistency.


# 5c700c15 22-Oct-2019 Axel Heider <axelheider@gmx.de>

output: use CR LF as line break and not LF CR


# d0930f67 18-Mar-2019 Anna Lyons <Anna.Lyons@data61.csiro.au>

style: consistently attach return type

Add attach-return-type to astyle


# 3d10ef0c 18-Mar-2019 Anna Lyons <Anna.Lyons@data61.csiro.au>

style: correct parenthesis padding

Use astyle's unpad-paren to unpad all parentheses that are not included
by pad-header, pad-oper, and pad-comma.


# 7b019e3d 13-Mar-2019 Anna Lyons <Anna.Lyons@data61.csiro.au>

serial: remove putConsoleChar

putConsoleChar was needless indirection around putDebugChar. Remove
this.


# 502fb2e5 22-Jun-2017 Bamboo <bamboo@keg.ertos.in.nicta.com.au>

[STYLE_FIX]


# c61bc76c 22-Jun-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

kprintf: support trailing spaces in format strings

ie %20s, %4lu will now work. Leading spaces won't though.


# 4cedb287 23-Aug-2016 Anna Lyons <Anna.Lyons@data61.csiro.au>

Fix putchar


# ada2fc5f 23-Aug-2016 Anna Lyons <Anna.Lyons@data61.csiro.au>

SELFOUR-624: fix ia32 debug build

- separate putDebugChar and putConsoleChar
- this only has effect on x86 where 2 serial ports are initialised by
the kernel
- for arm, putConsoleChar just calls putDebugChar


# 49510f9d 22-Aug-2016 Anna Lyons <Anna.Lyons@data61.csiro.au>

SELFOUR-624: remove redundancy in io.[c|h]

And clean up a bit while we are there


# 541289a3 11-May-2016 Adrian Danis <Adrian.Danis@data61.csiro.au>

Further separate 'release' and 'verification' builds

Originally building the kernel was largely considered to be done in
one of two ways
1. Release build with no assertions, no debug symbols and no printing.
This was generally considered to be a 'verified' build
2. Debug build with assertions, debug symbols and printing

Since then various options were added, such as the 'code injection'
option, which we wanted on builds that did not have assertions or
other options that affected performance. As such it did not depend
upon a debug build and had large warning signs saying that enabling
this in a release build would not give you a verified or trusted
kernel.

Most recently the ability to print from the kernel in release mode
was added. For the same reason that tying the ability to print with
the performance reduction of various debugging was not always desireable.

This change attempts to unify the current state and have a single top
level option to enable a 'verification friendly' build. All other
options (assertions, printing, code injection) then depend upon
this configuration not being set.


# 994c22dd 09-Dec-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

trivial: style


# 171824f7 07-Dec-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

Change additional int->word_t due to interraction with the C parser to ease verification


# 0ecff9f3 09-Nov-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

unsigned int -> word_t


# 3ef26761 03-Jun-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

Make utility functions 64bit friendly


# c32d4532 01-Oct-2015 Anna Lyons <Anna.Lyons@nicta.com.au>

add support for %lx, %lu, %ld to kprintf, return -1 if format not supported


# ec788900 24-Jul-2015 Anna Lyons <Anna.Lyons@nicta.com.au>

xIntroduce RELEASE_PRINTF, which allows a renamed printf (release_printf) to be used in a release build of the kernel - userful for debugging tests that only fail on a release build of the kernel


# 91b7da86 17-Jul-2014 TrusthworthySystems <gatekeeper@sel4.systems>

Release snapshot