Call which will be a overlay later
This commit is contained in:
parent
fd61ca2ecc
commit
c666dd6810
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue