1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-10-04 03:34:11 +03:00
iris/mips.hhp
Bas Wijnen 60ea570aaa more
2009-05-20 22:07:56 +02:00

36 lines
842 B
Plaintext

#pypp 0
#ifndef _ARCH_HH
#define _ARCH_HH
#define PAGE_BITS (12)
#define PAGE_SIZE (1 << PAGE_BITS)
#define PAGE_MASK (~(PAGE_SIZE - 1))
struct Thread_arch:
unsigned at, v0, v1, a0, a1, a2, a3
unsigned t0, t1, t2, t3, t4, t5, t6, t7, t8, t9
unsigned gp, fp, ra, hi, lo, k0, k1
struct Memory_arch:
unsigned asid
unsigned **directory
EXTERN unsigned g_asid
// Functions which can be called from assembly must not be mangled.
extern "C":
// Kernel entry points, called from entry.S.
Thread *interrupt (Thread *current)
Thread *cache_error (Thread *current)
Thread *exception (Thread *current)
Thread *tlb_refill (Thread *current, unsigned EntryHi)
#ifdef INIT
// Initialize most things (the rest is done in boot.S)
void init ()
// Start running the idle task for the first time.
void run_idle (Thread *self)
#endif
#endif