Call which will be a overlay later
This commit is contained in:
parent
fd61ca2ecc
commit
c666dd6810
|
@ -37,7 +37,7 @@ LD = $(CXX)
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
#architecture flags
|
#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
|
ARCHFLAGS += -fno-stack-protector -nostdlib -ffreestanding
|
||||||
|
|
||||||
#Compiler flags for build profiles
|
#Compiler flags for build profiles
|
||||||
|
@ -56,7 +56,7 @@ CCFLAGS += -std=c++20
|
||||||
CCFLAGS += $(ARCHFLAGS)
|
CCFLAGS += $(ARCHFLAGS)
|
||||||
|
|
||||||
CCFLAGS += $(CCFLAGS_$(BUILD_PROFILE))
|
CCFLAGS += $(CCFLAGS_$(BUILD_PROFILE))
|
||||||
|
CCFLAGS += $(INCLUDES)
|
||||||
CCFLAGS += -DJABYENGINE_$(TV_FORMAT)
|
CCFLAGS += -DJABYENGINE_$(TV_FORMAT)
|
||||||
|
|
||||||
#Linker flags
|
#Linker flags
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
#include <PSX/System/IOPorts/DMA_IO.hpp>
|
#include <PSX/System/IOPorts/DMA_IO.hpp>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
extern int main();
|
||||||
|
|
||||||
namespace JabyEngine {
|
namespace JabyEngine {
|
||||||
static void enable_DMA() {
|
static void enable_DMA() {
|
||||||
DMA::DPCR.write(DMA::DPCR.read() | DMA::DMAControlRegister::SPUEnable | DMA::DMAControlRegister::GPUEnable);
|
DMA::DPCR.write(DMA::DPCR.read() | DMA::DMAControlRegister::SPUEnable | DMA::DMAControlRegister::GPUEnable);
|
||||||
|
@ -19,5 +21,7 @@ namespace JabyEngine {
|
||||||
|
|
||||||
SPU::setup();
|
SPU::setup();
|
||||||
printf("Setup done!\n");
|
printf("Setup done!\n");
|
||||||
|
|
||||||
|
main();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue