Share bss section with planschi section
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
include ../../lib/RebuildTarget.mk
|
||||
JABY_ENGINE_DIR = ../../
|
||||
|
||||
ARTIFACT = libJabyEngine_$(TV_FORMAT)
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user