mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 04:44:44 +00:00
Rework handling of dmadata (#1036)
* Generate dmadata * Remove tab indentations in mkdmadata.c and mkldscript.c * Fix * Review suggestions * Hopefully fix * Fix index Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
This commit is contained in:
parent
783ef3a117
commit
04a9d51e90
13 changed files with 2034 additions and 3438 deletions
1540
src/boot/z_std_dma.c
1540
src/boot/z_std_dma.c
File diff suppressed because it is too large
Load diff
24
src/dmadata/dmadata.c
Normal file
24
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) \
|
||||
{ (u32)_##name##SegmentRomStart, (u32)_##name##SegmentRomEnd, (u32)_##name##SegmentRomStart, 0 },
|
||||
|
||||
DmaEntry gDmaDataTable[] = {
|
||||
#include "tables/dmadata_table.h"
|
||||
{ 0 },
|
||||
};
|
||||
|
||||
#undef DEFINE_DMA_ENTRY
|
||||
|
||||
// Additional padding?
|
||||
u8 sDmaDataPadding[0xF0] = { 0 };
|
Loading…
Add table
Add a link
Reference in a new issue