31 __asm__ (
".p2align 3");
33 __asm__ __volatile__(
"di");
50 __asm__ __volatile__(
"ei");
57 int EnableIntc(
int intc)
67 res = _EnableIntc(intc);
78 int DisableIntc(
int intc)
88 res = _DisableIntc(intc);
99 int EnableDmac(
int dmac)
109 res = _EnableDmac(dmac);
120 int DisableDmac(
int dmac)
130 res = _DisableDmac(dmac);
141 int SetAlarm(u16 time,
void (*callback)(s32 alarm_id, u16 time,
void *common),
void *common)
151 res = _SetAlarm(time, callback, common);
161 #ifdef F_ReleaseAlarm
162 int ReleaseAlarm(
int alarm_id)
172 res = _ReleaseAlarm(alarm_id);
183 int iEnableIntc(
int intc)
185 int res = _iEnableIntc(intc);
192 #ifdef F_iDisableIntc
193 int iDisableIntc(
int intc)
195 int res = _iDisableIntc(intc);
203 int iEnableDmac(
int dmac)
205 int res = _iEnableDmac(dmac);
212 #ifdef F_iDisableDmac
213 int iDisableDmac(
int dmac)
215 int res = _iDisableDmac(dmac);
223 int iSetAlarm(u16 time,
void (*callback)(s32 alarm_id, u16 time,
void *common),
void *common)
225 int res = _iSetAlarm(time, callback, common);
232 #ifdef F_iReleaseAlarm
233 int iReleaseAlarm(
int alarm_id)
235 int res = _iReleaseAlarm(alarm_id);
243 void SyncDCache(
void *start,
void *end)
253 _SyncDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
261 void iSyncDCache(
void *start,
void *end)
263 _SyncDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
267 #ifdef F_InvalidDCache
268 void InvalidDCache(
void *start,
void *end)
278 _InvalidDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
285 #ifdef F_iInvalidDCache
286 void iInvalidDCache(
void *start,
void *end)
288 _InvalidDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));