23 asm volatile(
"mfc0\t%0, $12"
34 asm volatile(
"sync.p");
35 asm volatile(
"mfc0\t%0, $12"
49 asm volatile(
"mfc0\t%0, $12"
59int EnableIntc(
int intc)
63 asm volatile(
"mfc0\t%0, $12"
70 res = _EnableIntc(intc);
81int DisableIntc(
int intc)
85 asm volatile(
"mfc0\t%0, $12"
92 res = _DisableIntc(intc);
103int EnableDmac(
int dmac)
107 asm volatile(
"mfc0\t%0, $12"
114 res = _EnableDmac(dmac);
125int DisableDmac(
int dmac)
129 asm volatile(
"mfc0\t%0, $12"
136 res = _DisableDmac(dmac);
147int SetAlarm(u16 time,
void (*callback)(s32 alarm_id, u16 time,
void *common),
void *common)
151 asm volatile(
"mfc0\t%0, $12"
158 res = _SetAlarm(time, callback, common);
169int ReleaseAlarm(
int alarm_id)
173 asm volatile(
"mfc0\t%0, $12"
180 res = _ReleaseAlarm(alarm_id);
191int iEnableIntc(
int intc)
193 int res = _iEnableIntc(intc);
201int iDisableIntc(
int intc)
203 int res = _iDisableIntc(intc);
211int iEnableDmac(
int dmac)
213 int res = _iEnableDmac(dmac);
221int iDisableDmac(
int dmac)
223 int res = _iDisableDmac(dmac);
231int iSetAlarm(u16 time,
void (*callback)(s32 alarm_id, u16 time,
void *common),
void *common)
233 int res = _iSetAlarm(time, callback, common);
240#ifdef F_iReleaseAlarm
241int iReleaseAlarm(
int alarm_id)
243 int res = _iReleaseAlarm(alarm_id);
251void SyncDCache(
void *start,
void *end)
255 asm volatile(
"mfc0\t%0, $12"
262 _SyncDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
270void iSyncDCache(
void *start,
void *end)
272 _SyncDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
276#ifdef F_InvalidDCache
277void InvalidDCache(
void *start,
void *end)
281 asm volatile(
"mfc0\t%0, $12"
288 _InvalidDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));
295#ifdef F_iInvalidDCache
296void iInvalidDCache(
void *start,
void *end)
298 _InvalidDCache((
void *)((u32)start & 0xffffffc0), (
void *)((u32)end & 0xffffffc0));