mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-16 21:05:12 +00:00
[headers 8] Add main.h
, segmented_address.h
, and changes for main.c
symbols (#2151)
* [headers 8] Add main.h and changes for main.c symbols * fix gSystemHeapSize is size_t only in MM * segmented_address.h * rm now useless include * actually commit segmented_address.h, oops * rm gGraphThread (faulty copypaste from MM) * bss
This commit is contained in:
parent
27533a1507
commit
277ce1c0d3
12 changed files with 46 additions and 15 deletions
11
include/segmented_address.h
Normal file
11
include/segmented_address.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef SEGMENTED_ADDRESS_H
|
||||
#define SEGMENTED_ADDRESS_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "stdint.h"
|
||||
|
||||
extern uintptr_t gSegments[NUM_SEGMENTS];
|
||||
|
||||
#define SEGMENTED_TO_VIRTUAL(addr) (void*)(gSegments[SEGMENT_NUMBER(addr)] + SEGMENT_OFFSET(addr) + K0BASE)
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue