[gbastartup] Fix incorrect bit_cast usages

This commit is contained in:
Gary Talent 2021-12-01 01:34:53 -06:00
parent 97bf81ba23
commit 596c0718e1

View File

@ -6,16 +6,15 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <ox/std/bit.hpp>
#include <ox/std/heapmgr.hpp>
#define MEM_EWRAM_BEGIN ox::bit_cast<char*>(0x02000000)
#define MEM_EWRAM_END ox::bit_cast<char*>(0x0203FFFF)
#define MEM_EWRAM_BEGIN reinterpret_cast<char*>(0x02000000)
#define MEM_EWRAM_END reinterpret_cast<char*>(0x0203FFFF)
#define HEAP_BEGIN ox::bit_cast<char*>(MEM_EWRAM_BEGIN)
#define HEAP_BEGIN reinterpret_cast<char*>(MEM_EWRAM_BEGIN)
// set size to half of EWRAM
#define HEAP_SIZE ((MEM_EWRAM_END - MEM_EWRAM_BEGIN) / 2)
#define HEAP_END ox::bit_cast<char*>(MEM_EWRAM_BEGIN + HEAP_SIZE)
#define HEAP_END reinterpret_cast<char*>(MEM_EWRAM_BEGIN + HEAP_SIZE)
extern void (*__preinit_array_start[]) (void);
extern void (*__preinit_array_end[]) (void);