Turning on -W pedantic shows us that our memory constants can't fit in an enum in ISO C. Not a real problem for GNU99 but makes it hard to run -W pedantic to find other problems.
I propose we change the memory constants from an enum into pre-processor defines instead and use simple direct values for the memory addresses instead of computing them.
We also turn on pedantic warnings but allow inline asm as the GNU extension we mostly use and fix missing void parameter declarations that pedantic warned us about.
Please review carefully that have all the addresses defined.
Also note that tk1_mem.h is also used in tkey-libs and qemu.
Turning on
-W pedantic
shows us that our memory constants can't fit in an enum in ISO C. Not a real problem for GNU99 but makes it hard to run-W pedantic
to find other problems.I propose we change the memory constants from an enum into pre-processor defines instead and use simple direct values for the memory addresses instead of computing them.
We also turn on pedantic warnings but allow inline asm as the GNU extension we mostly use and fix missing void parameter declarations that pedantic warned us about.
Please review carefully that have all the addresses defined.
Also note that
tk1_mem.h
is also used intkey-libs
andqemu
.Closes #159