root/include/asm-sparc/head.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __SPARC_HEAD_H
   2 #define __SPARC_HEAD_H
   3 
   4 #define KERNSIZE        134217728   /* this is how much of a mapping the prom promises */
   5 #define PAGESIZE        4096        /* luckily this is the same on sun4c's and sun4m's */
   6 #define PAGESHIFT       12
   7 #define PROM_BASE       -1568768    /* casa 'de PROM */
   8 #define LOAD_ADDR       0x4000      /* prom jumps to us here */
   9 #define C_STACK         96
  10 #define SUN4C_SEGSZ     (1 << 18)
  11 #define USRSTACK        0x0         /* no joke, this is temporary, trust me */
  12 #define INT_ENABLE_REG_PHYSADR      0xf5000000
  13 #define INTS_ALL_ENAB   0x01
  14 
  15 #define WRITE_PAUSE     nop; nop; nop;
  16 
  17 /* Here are some trap goodies */
  18 
  19 
  20 /* Generic trap entry. */
  21 
  22 #define TRAP_ENTRY(type, label) \
  23         mov (type), %l3; b label; mov %psr, %l0; nop;
  24 
  25 /* This is for hard interrupts from level 1-14, 15 is non-maskable (nmi) and
  26  * gets handled with another macro.
  27  */
  28 
  29 #define TRAP_ENTRY_INTERRUPT(int_level) \
  30         mov int_level, %l4; b trap_entry; mov %psr, %l0; nop;
  31 
  32 /* Here is the macro for soft interrupts (ie. not as urgent as hard ones)
  33    which need to jump to a different handler.
  34 */
  35 
  36 #define TRAP_ENTRY_INTERRUPT_SOFT(int_level, ident) \
  37         mov int_level, %l4; mov %psr, %l0; b trap_entry; mov ident, %l3;
  38 
  39 /* Non-maskable interrupt entry macro. You have to turn off all interrupts
  40    to not receive this. This is usually due to a asynchronous memory error.
  41    All we can really do is stop the show. :-(
  42 */
  43 #define TRAP_ENTRY_INTERRUPT_NMI(t_type, jmp_to) \
  44         mov t_type, %l3; b jmp_to; mov %psr, %l0; nop;
  45 
  46 /* Trap entry code in entry.S needs the offsets into task_struct
  47  * to get at the thread_struct goodies during window craziness.
  48  *
  49  * NOTE: We need to keep these values under 0x3ff in order to do
  50  *       efficient load/stores in the window fill/spill handlers.
  51  *       See TRAP_WIN_CLEAN in entry.S for details.
  52  */
  53 
  54 #define THREAD_UWINDOWS 0x3a8
  55 #define THREAD_WIM 0x3ac
  56 #define THREAD_W_SAVED 0x3b0
  57 #define THREAD_KSP 0x3b4
  58 #define THREAD_USP 0x3b8
  59 #define THREAD_REG_WINDOW 0x3c0
  60 
  61 #endif __SPARC_HEAD_H

/* [previous][next][first][last][top][bottom][index][help] */