Share bss section with planschi section

This commit is contained in:
2023-08-27 02:43:59 +02:00
parent 2c3e0d2a59
commit 83cdade874
8 changed files with 87 additions and 84 deletions

View File

@@ -1,3 +1,4 @@
include ../../lib/RebuildTarget.mk
JABY_ENGINE_DIR = ../../
ARTIFACT = libJabyEngine_$(TV_FORMAT)

View File

@@ -3,6 +3,13 @@
#include <PSX/System/IOPorts/dma_io.hpp>
#include <stdio.h>
extern "C" uint32_t __heap_start;
extern "C" uint32_t __bss_start;
extern "C" uint32_t __bss_end;
extern "C" uint32_t __bss_len;
extern "C" uint32_t __planschi_start;
extern "C" uint32_t __planschi_end;
namespace JabyEngine {
namespace boot {
namespace Start {
@@ -29,6 +36,9 @@ namespace JabyEngine {
void start() {
printf("Starting Planschbecken\n");
printf("Heap starts @0x%p\n", &__heap_start);
printf("BSS from 0x%p to 0x%p (%u)\n", &__bss_start, &__bss_end, __bss_len);
printf("PLANSCHI from 0x%p to 0x%p\n", &__planschi_start, &__planschi_end);
boot::Start::setup();
printf("Running main...\n");