Call which will be a overlay later

This commit is contained in:
jaby 2022-11-29 03:28:42 +01:00
parent fd61ca2ecc
commit c666dd6810
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,7 @@ LD = $(CXX)
AR = ar
#architecture flags
ARCHFLAGS = -march=mips1 -mabi=32 -EL -fno-pic -mno-shared -mno-abicalls -mfp32
ARCHFLAGS = -march=mips1 -mabi=32 -EL -fno-pic -mno-shared -nostdinc -nostdinc++ -mno-abicalls -mfp32
ARCHFLAGS += -fno-stack-protector -nostdlib -ffreestanding
#Compiler flags for build profiles
@ -56,7 +56,7 @@ CCFLAGS += -std=c++20
CCFLAGS += $(ARCHFLAGS)
CCFLAGS += $(CCFLAGS_$(BUILD_PROFILE))
CCFLAGS += $(INCLUDES)
CCFLAGS += -DJABYENGINE_$(TV_FORMAT)
#Linker flags

View File

@ -2,6 +2,8 @@
#include <PSX/System/IOPorts/DMA_IO.hpp>
#include <stdio.h>
extern int main();
namespace JabyEngine {
static void enable_DMA() {
DMA::DPCR.write(DMA::DPCR.read() | DMA::DMAControlRegister::SPUEnable | DMA::DMAControlRegister::GPUEnable);
@ -19,5 +21,7 @@ namespace JabyEngine {
SPU::setup();
printf("Setup done!\n");
main();
}
}