History log of /seL4-l4v-10.1.1/seL4/src/util.c
Revision Date Author Comments
# 679c0b09 11-Apr-2018 Adrian Danis <Adrian.Danis@data61.csiro.au>

Remove strlen

This is not suitable for verification and strnlen must be used instead.


# 43e17052 11-Apr-2018 Adrian Danis <Adrian.Danis@data61.csiro.au>

Remove strcmp

This function causes difficulties for verification and strncmp should be used instead.


# 5ac36bce 09-Apr-2018 Adrian Danis <Adrian.Danis@data61.csiro.au>

riscv: Move strcmp to util


# c0839197 08-Apr-2018 Adrian Danis <Adrian.Danis@data61.csiro.au>

riscv: Move strlen to util


# 80303364 03-Apr-2018 Adrian Danis <Adrian.Danis@data61.csiro.au>

riscv: Move implementations into c file

Function implementations belong in source files, not header files.


# 5552c6c6 15-Jun-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

mark memset and memcpy as VISIBLE

When compiling the kernel as a whole program it is possible that these functions may
be inlined and not emitted in the resulting binary. However at the same time the
compiler may itself emit calls to these functions. Marking these functions as
externally visible tells the compiler that there may be more usages of them than
it sees immediately in the source code, in this cases usages that the compiler
itself is going to generate


# d36447b3 29-Jun-2016 Matthew Fernandez <matthew.fernandez@nicta.com.au>

Mark strncmp as a pure function.

Simply a performance optimisation. This has no effect on functional behaviour.


# 8a6ebc05 09-Jun-2016 Matthew Fernandez <matthew.fernandez@nicta.com.au>

trivial: fix comment typo.


# 21d9f7ae 26-Jan-2016 Adrian Danis <Adrian.Danis@nicta.com.au>

Add 'used' attribute to memcpy to prevent optimizing out

Some versions of GCC replace a struct copy with a call to 'memcpy',
which it is fully in its rights to do. Unfortunately on ARM platforms,
that have no direct calls to memcpy, the optimizer (in the presence
of -fwhole-program) drops the implementation of memcpy, even as it
is outputting calls to it.

Add the USED attribute prevents the optimizer from dropping the
function eagerly.


# 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


# 0625f85f 09-Sep-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

Inform the compiler that the writes in memzero may alias with other memory


# 67d8d041 14-May-2015 Thomas Sewell <Thomas.Sewell@nicta.com.au>

Ghost assertions about max object size.


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

Release snapshot