git subrepo clone https://github.com/HarbourMasters/soh.git
subrepo: subdir: "soh" merged: "ba904bbd0" upstream: origin: "https://github.com/HarbourMasters/soh.git" branch: "master" commit: "ba904bbd0" git-subrepo: version: "0.4.1" origin: "???" commit: "???"
This commit is contained in:
24
soh/src/dmadata/dmadata.c
Normal file
24
soh/src/dmadata/dmadata.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "z64dma.h"
|
||||
|
||||
// Linker symbol declarations (used in the table below)
|
||||
#define DEFINE_DMA_ENTRY(name) \
|
||||
extern u8 _##name##SegmentRomStart[]; \
|
||||
extern u8 _##name##SegmentRomEnd[];
|
||||
|
||||
#include "tables/dmadata_table.h"
|
||||
|
||||
#undef DEFINE_DMA_ENTRY
|
||||
|
||||
// dmadata Table definition
|
||||
#define DEFINE_DMA_ENTRY(name) \
|
||||
{ (uintptr_t)_##name##SegmentRomStart, (uintptr_t)_##name##SegmentRomEnd, (uintptr_t)_##name##SegmentRomStart, 0 },
|
||||
|
||||
DmaEntry gDmaDataTable[] = {
|
||||
#include "tables/dmadata_table.h"
|
||||
{ 0 },
|
||||
};
|
||||
|
||||
#undef DEFINE_DMA_ENTRY
|
||||
|
||||
// Additional padding?
|
||||
u8 sDmaDataPadding[0xF0] = { 0 };
|
||||
Reference in New Issue
Block a user