9os

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

commit e434f9a14cfd695066a7f6bdc65c3196e780ffd8
parent 81a1ca3c74a4ef0b153419e188686f410f4926f3
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed,  7 Nov 2018 11:30:44 +0000

[rcode] Make the bss pointer volatile not the data it points to

Otherwise longjmp(bss->jmp_buf, 1) generates warnings because of
qualifier mismatch.  This means the compiler will not hold the bss
pointer in a register but will have to derive it at every use.

Change-Id: I9a7e96793eb303d1b3a5de53882ea0e00801e807
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 @@ -125,7 +125,7 @@ struct rmucmd { struct trapframe *fp; }; -static inline volatile struct bssmap * +static inline struct bssmap * volatile bss(void) { uintptr_t addr;