kaffe-0.8.4-m68k-nextstep3.patch

Eike Dierks eike at cs.tu-berlin.de
Mon Apr 28 22:12:51 PDT 1997


This is a patch for kaffe-0.8.4 so that it runs on black NeXT HW.
By appyling this patch I was able to run javac on HelloWorldApp.java
and to run the resulting .class file --No other cases tested.
This bug may also apply to other kaffe configurations.

Maintainer: Please check if there are still more initializations missing in 
thread.c:startDaemon() and related places -- looks like ...

<eike at ilink.de>





*** kaffe-0.8.4/kaffe/kaffevm/thread.c  Fri Apr 18 09:41:55 1997
--- /Users/eike/src/kaffe-0.8.4/kaffe/kaffevm/thread.c  Tue Apr 29 06:39:02 1997
***************
*** 945,950 ****
--- 945,954 ----
        tid->priority = MAX_THREAD_PRIO;
        TCTX(tid)->priority = (uint8)tid->priority;
        tid->next = 0;
+ 
+       TCTX(tid)->nextalarm = 0;       /* eike at ilink.de, 970429 */
+       TCTX(tid)->blockqueue = 0;      /* eike at ilink.de, 970429 */
+ 
        TCTX(tid)->status = THREAD_SUSPENDED;
        TCTX(tid)->nextlive = liveThreads;
        liveThreads = tid;
***************
*** 1009,1015 ****
  {
        ctx *ct;
  
!       ct = checked_malloc(sizeof(ctx) + stackSize);
        ct->stackBase = (uint8*)(ct + 1);
        ct->stackEnd = ct->stackBase + stackSize;
        ct->restorePoint = ct->stackEnd;
--- 1013,1019 ----
  {
        ctx *ct;
  
!       ct = checked_calloc(sizeof(ctx) + stackSize, 1);        /* eike at ilink.de, 970429 */
        ct->stackBase = (uint8*)(ct + 1);
        ct->stackEnd = ct->stackBase + stackSize;
        ct->restorePoint = ct->stackEnd;



More information about the kaffe mailing list