[kaffe] PS2/Linux patch take 3 / PS2/Linux patch take 4

Dylan Schell dylans at xs4all.nl
Sun Jun 16 14:50:34 PDT 2002


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 at cs.utah.edu
> 		 Does the name `Pavlov' ring a bell?
> 
> 







More information about the kaffe mailing list