9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4f92faef787155edd1e9a5b78d7670284857ccf1
parent ad6f6a63f67153a6e6ba0b7fcb794bd0ca85e53a
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Fri, 19 Oct 2018 16:59:47 +0100

Add volatile qualifier to the bss() function

The compiler can see that we are returning the address of a local
variable which is undefined behaviour and can remove the code
entirely.

Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Minclude/rcode.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/rcode.h b/include/rcode.h @@ -112,7 +112,7 @@ struct rmucmd { jmp_buf recover; }; -static inline struct bssmap * +static inline volatile struct bssmap * bss(void) { uintptr_t addr;