mirror of
https://github.com/zeldaret/mm.git
synced 2024-11-23 12:59:44 +00:00
2e2b2e2c7a
* [headers] Move padmgr, scheduler symbols to respective headers * fix revealed header problems * Fix bss * review * bss * segmented_address.h --------- Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
13 lines
256 B
C
13 lines
256 B
C
#ifndef SEGMENTED_ADDRESS_H
|
|
#define SEGMENTED_ADDRESS_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
#include "stdint.h"
|
|
|
|
extern uintptr_t gSegments[NUM_SEGMENTS];
|
|
|
|
#define SEGMENTED_TO_K0(addr) (void*)((gSegments[SEGMENT_NUMBER(addr)] + K0BASE) + SEGMENT_OFFSET(addr))
|
|
|
|
#endif
|