Align g_RdpDramStack and g_RdpYieldData

This commit is contained in:
Ryan Dwyer 2022-10-15 10:04:09 +10:00
parent 678835d997
commit 914aaaa0e4
3 changed files with 10 additions and 8 deletions

View File

@ -86,6 +86,12 @@
#define PORTAL_IS_CLOSED(portalnum) ((g_BgPortals[portalnum].flags & PORTALFLAG_CLOSED) && (g_BgPortals[portalnum].flags & PORTALFLAG_FORCEOPEN) == 0)
#ifdef __sgi
#define ALIGNED16
#else
#define ALIGNED16 __attribute__ ((aligned (16)))
#endif
#if VERSION >= VERSION_NTSC_1_0
#define ROM_COMPANYCODE 0x3459
#else

View File

@ -6,9 +6,8 @@
#include "lib/memp.h"
#include "lib/sched.h"
u8 g_RdpDramStack[SP_DRAM_STACK_SIZE8];
u8 g_RdpYieldData[0xb00];
ALIGNED16 u8 g_RdpDramStack[SP_DRAM_STACK_SIZE8];
ALIGNED16 u8 g_RdpYieldData[0xb00];
u16 *g_RdpOutBufferEnd = NULL;
u16 *g_RdpOutBufferStart = NULL;

View File

@ -1,13 +1,10 @@
#include <os_internal.h>
#include <rcp.h>
#include "controller.h"
#include "constants.h"
#include "siint.h"
#ifdef __sgi
OSPifRam __osContPifRam;
#else
__attribute__ ((aligned (0x10))) OSPifRam __osContPifRam;
#endif
ALIGNED16 OSPifRam __osContPifRam;
u8 __osContLastCmd;
u8 __osMaxControllers;