Mercurial > nand-ecoscentric
diff packages/hal/sparclite/arch/current/include/vectors.h @ 40:a3cc6665b684 ecos-sw-1999-10-01
Merge from eCos master repository on 1999-10-01-07:47:04-BST
| author | jlarmour |
|---|---|
| date | Fri, 01 Oct 1999 13:25:47 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
line wrap: on
line diff
--- a/packages/hal/sparclite/arch/current/include/vectors.h +++ b/packages/hal/sparclite/arch/current/include/vectors.h @@ -45,11 +45,21 @@ //============================================================================= #define __WINSIZE 8 -#define __WINBITS 7 + +#if __WINSIZE <= 8 +# define __WINBITS 7 +#else +# error __WINSIZE window size probably not supported +#endif + +// These should be generic to all SPARCs: + #define __WINBITS_MAXIMAL 0x1f -#define __WIN_INIT 7 -#define __WIM_INIT 0x80 +#define __WIN_INIT (__WINSIZE - 1) +#define __WIM_INIT (1 << __WIN_INIT) + +// ------------------------------------------------------------------------ #define TRAP_WUNDER 6 // Window Underflow trap number #define TRAP_WOVER 5 // Window Overflow trap number
