[kaffe] PS2/Linux patch take 3 / PS2/Linux patch take 4
Dylan Schell
dylans@xs4all.nl
Sun, 16 Jun 2002 23:50:34 +0200
Patrick Tullmann wrote:
> Dylan wrote:
>
>>Anyway, I revised the patch again. This time the code just checks
>>for _R5900 ( This is the PS2 MIPS Core ).
>
>
> The "PS2LINUX" #define was much more readable... :) Probably
> deserves at least a comment in common.h.
OK, what about I add this to common.h?
#ifdef _R5900
#define PS2LINUX
#endif
>
>
>>+ #ifdef _R5900
>>+ #undef THREADSTACKSIZE
>>+ #define THREADSTACKSIZE (128 * 1024)
>>+ #endif
>
>
> That's a fairly gigantic stack size for each thread. Is there a
> PS2-specific requirement for that? Or did the interpreter just blow
> up too often with a lower stack size? (BTW, how big is a JMP_BUF on
> the MIPS?)
>
To be very honest, I Assumed the 32 came from register size,
the ps2 general purpose registers are 128 bits wide. However pointer
are 32 bit. The sizeof(__jmp_buf) is 208 bytes.
> -Pat
>
> ----- ----- ---- --- --- -- - - - - -
> Pat Tullmann tullmann@cs.utah.edu
> Does the name `Pavlov' ring a bell?
>
>