Add ddb-kseg0.ld and switch to kseg1 if sizing memory from kseg0

This commit is contained in:
Michael Meissner
2001-10-18 02:24:30 +00:00
parent bd71a776e8
commit b5b5b0d4de
6 changed files with 212 additions and 22 deletions

View File

@@ -56,8 +56,12 @@
#define K0BASE 0x80000000
#ifndef __mips64
#define K1BASE 0xA0000000
#define K0BASE_ADDR ((char *)K0BASE)
#define K1BASE_ADDR ((char *)K1BASE)
#else
#define K1BASE 0xFFFFFFFFA0000000LL
#define K0BASE_ADDR ((char *)0xFFFFFFFF80000000LL)
#define K1BASE_ADDR ((char *)K1BASE)
#endif
#define PHYS_TO_K1(a) ((unsigned)(a) | K1BASE)