1: /* 2: * Definitions relating to kernel text overlays. The kernel and 3: * stand/bootstrap/boot.c must be recompiled if these are changed. 4: * In practice, it is very difficult to change these numbers since 5: * many changes will be necessary in mch.s. This file is provided 6: * mainly to specify how kernel overlays are laid out, not for tuning. 7: * 8: * 9: * Primary variables: 10: * # ovly regs the maximum size of a kernel 11: * overlay segment will be 12: * 8k bytes * # ovly regs. 13: * Currently, must be 1. 14: * 15: * OVLY_TABLE_BASE the address in l.s where the 16: * kernel stores the prototype 17: * PARs and PDRs. The only one 18: * of the constants in this file 19: * which may readily be changed. 20: * 21: * NUM_TEXT_REGS the maximum size of the kernel 22: * base text segment will be 23: * 8k bytes * NUM_TEXT_REGS. 24: */ 25: 26: #define OVLY_TABLE_BASE 01000 27: 28: #define I_NUM_TEXT_REGS 7 /* 8 - # ovly regs */ 29: #define N_NUM_TEXT_REGS 2 30: #ifndef KERN_NONSEP 31: #define NUM_TEXT_REGS I_NUM_TEXT_REGS 32: #else 33: #define NUM_TEXT_REGS N_NUM_TEXT_REGS 34: #endif KERN_NONSEP 35: 36: #define I_MAX_DATA_REGS 6 37: #define N_MAX_DATA_REGS 3 /* 6 - NUM_TEXT_REGS - # ovly regs */ 38: #ifndef KERN_NONSEP 39: #define MAX_DATA_REGS I_MAX_DATA_REGS 40: #else 41: #define MAX_DATA_REGS N_MAX_DATA_REGS 42: #endif KERN_NONSEP 43: 44: #define I_DATA_PAR_BASE KDSA0 45: #define N_DATA_PAR_BASE KISA3 /* &KISA[NUM_TEXT_REGS + # ovly regs] */ 46: #ifndef KERN_NONSEP 47: #define DATA_PAR_BASE I_DATA_PAR_BASE 48: #else 49: #define DATA_PAR_BASE N_DATA_PAR_BASE 50: #endif KERN_NONSEP 51: 52: #define I_DATA_PDR_BASE KDSD0 53: #define N_DATA_PDR_BASE KISD3 /* &KISD[NUM_TEXT_REGS + # ovly regs] */ 54: #ifndef KERN_NONSEP 55: #define DATA_PDR_BASE I_DATA_PDR_BASE 56: #else 57: #define DATA_PDR_BASE N_DATA_PDR_BASE 58: #endif KERN_NONSEP 59: 60: #define TEXT_PAR_BASE KISA0 61: #define TEXT_PDR_BASE KISD0 62: #ifdef KERN_NONSEP 63: #define OVLY_PAR KISA2 /* &KISA[NUM_TEXT_REGS] */ 64: #define OVLY_PDR KISD2 /* &KISD[NUM_TEXT_REGS] */ 65: #else 66: #define OVLY_PAR KISA7 /* &KISA[NUM_TEXT_REGS] */ 67: #define OVLY_PDR KISD7 /* &KISD[NUM_TEXT_REGS] */ 68: #endif