Fix test compiling

This commit is contained in:
meepingsnesroms
2019-09-20 10:46:55 -07:00
parent e9d6d21625
commit 16924bb811
6 changed files with 23 additions and 13 deletions

View File

@@ -0,0 +1,18 @@
.align 4
.globl disableInts
.globl enableInts
//uint32_t disableInts(void)
disableInts:
MRS R0, CPSR
ORR R1, R0, #0xC0
MSR CPSR, R1
BX LR
//void enableInts(uint32_t ints)
enableInts:
MSR CPSR, R0
BX LR
.pool

View File

@@ -1,10 +1 @@
#include <stdint.h>
uint32_t disableInts(void){
//TODO: x
}
void enableInts(uint32_t ints){
//TODO: x
}

View File

@@ -2,7 +2,7 @@
#include <stdint.h>
#include "testSuite.h"
#include "specs/dragonballVzRegisterSpec.h"
#include "dbvzRegisterNames.h"
#include "viewer.h"
#include "cpu.h"

View File

@@ -9,6 +9,7 @@
/*defines*/
#define CODE_SECTION(codeSection) __attribute__((section(codeSection)))
#define ALIGN(size) __attribute__((aligned(size)))
#define HW_REG_ADDR(x) (0xFFFFF000 | (x))
#define SHARED_DATA_BUFFER_SIZE 1000

View File

@@ -5,8 +5,8 @@
#include "testSuite.h"
#include "testSuiteConfig.h"
#include "specs/dragonballVzRegisterSpec.h"
#include "specs/sed1376RegisterSpec.h"
#include "dbvzRegisterNames.h"
#include "sed1376RegisterNames.h"
#include "debug.h"
#include "tools.h"
#include "cpu.h"

View File

@@ -4,7 +4,7 @@
#include <string.h>
#include <Extensions/ExpansionMgr/VFSMgr.h>
#include "specs/dragonballVzRegisterSpec.h"
#include "dbvzRegisterNames.h"
#include "testSuite.h"
#include "viewer.h"
#include "debug.h"