KSEG0
#define KSEG0ADDR(a) (((unsigned long)a & 0x1fffffff) | KSEG0)
#define CKSEG0ADDR(a) (CPHYSADDR(a) | KSEG0)
#define KSEG0ADDR(a) (CPHYSADDR(a) | KSEG0)
#define TASK_SIZE_MAX KSEG0
if ((unsigned int)*p < KSEG0) {
if ((entryhi & PAGE_MASK) != KSEG0 &&
if (size > icache_size || KSEGX(start) != KSEG0) {
start = KSEG0;
if (size > dcache_size || KSEGX(start) != KSEG0) {
start = KSEG0;
r3k_flush_dcache_range(KSEG0, KSEG0 + dcache_size);
r3k_flush_icache_range(KSEG0, KSEG0 + icache_size);
p = (volatile unsigned long *) KSEG0;
p = (volatile unsigned long *) KSEG0;
write_c0_entryhi(KSEG0);
write_c0_entryhi(KSEG0);
write_c0_entryhi(KSEG0);