LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Jan 28 16:44:10 CET 2008
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/08/01 28:16:44

    Modified: jop/java/target/src/common/com/jopdesign/sys
    RtThreadImpl.java
    Log:
    Fixed some comments and some debug code,

    to make it work with the new stack offset.




    Revision Changes Path
    1.11 jop/java/target/src/common/com/jopdesign/sys/RtThreadImpl.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/common/com/jopdesign/sys/RtThreadImpl.java.diff?r1=1.10&r2=1.11

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: RtThreadImpl.java
    ===================================================================
    RCS file: /cvsroot/paulo/jop/java/target/src/common/com/jopdesign/sys/RtThreadImpl.java,v
    retrieving revision 1.10
    retrieving revision 1.11
    diff -u -b -r1.10 -r1.11
    --- RtThreadImpl.java 3 Dec 2007 17:04:08 -0000 1.10
    +++ RtThreadImpl.java 28 Jan 2008 15:44:10 -0000 1.11
    @@ -220,7 +220,7 @@
    i = Native.getSP();
    RtThreadImpl th = ref[active];
    th.sp = i;
    - Native.int2extMem(Const.STACK_OFF, th.stack, i-Const.STACK_OFF+1); // cnt is i-128+1
    + Native.int2extMem(Const.STACK_OFF, th.stack, i-Const.STACK_OFF+1); // cnt is i-Const.STACK_OFF+1

    // SCHEDULE
    // cnt should NOT contain idle thread
    @@ -252,13 +252,13 @@

    // restore stack
    s1 = ref[i].sp;
    - Native.setVP(s1+2); // +2 for shure ???
    + Native.setVP(s1+2); // +2 for sure ???
    Native.setSP(s1+7); // +5 locals, take care to use only the first 5!!

    i = s1;
    // can't use s1-127 as count,
    // don't know why I have to store it in a local.
    - Native.ext2intMem(ref[active].stack, Const.STACK_OFF, i-Const.STACK_OFF+1); // cnt is i-128+1
    + Native.ext2intMem(ref[active].stack, Const.STACK_OFF, i-Const.STACK_OFF+1); // cnt is i-Const.STACK_OFF+1

    j = Native.rd(Const.IO_US_CNT);
    // check if next timer value is too early (or allready missed)
    @@ -354,8 +354,8 @@
    /* this is the save version
    i = Native.getSP();
    sp = i;
    - for (j=128; j<=i; ++j) {
    - stack[j-128] = Native.rdIntMem(j);
    + for (j=Const.STACK_OFF; j<=i; ++j) {
    + stack[j-Const.STACK_OFF] = Native.rdIntMem(j);
    }
    */
    }
    @@ -560,7 +560,7 @@
    util.Dbg.wr('\n');
    util.Dbg.intVal(ref[i].sp);
    util.Dbg.wr('\n');
    - for (j=0; j<=ref[i].sp-128; ++j) {
    + for (j=0; j<=ref[i].sp-Const.STACK_OFF; ++j) {
    util.Dbg.intVal(ref[i].stack[j]);
    }
    util.Dbg.wr('\n');
    @@ -595,9 +595,9 @@

    fp = sp-4; // first frame point is easy, since last sp points to the end of the frame

    - while (fp>128+5) { // stop befor 'fist' method
    - mp = stack[fp+4-128];
    - vp = stack[fp+2-128];
    + while (fp>Const.STACK_OFF+5) { // stop befor 'fist' method
    + mp = stack[fp+4-Const.STACK_OFF];
    + vp = stack[fp+2-Const.STACK_OFF];
    val = Native.rdMem(mp);
    addr = val>>>10; // address of callee
    util.Dbg.intVal(addr);



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.