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
  • 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: Sun Apr 27 18:04:42 CEST 2008
    Subject: [cvs-checkins] MODIFIED: aemb ...
    Top
    Date: 00/08/04 27:18:04

    Modified: aemb/sw/cc/aemb hook.hh stack.hh
    Log:
    Minor cosmetic changes.


    Revision Changes Path
    1.8 aemb/sw/cc/aemb/hook.hh

    http://www.opencores.org/cvsweb.shtml/aemb/sw/cc/aemb/hook.hh.diff?r1=1.7&r2=1.8

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

    Index: hook.hh
    ===================================================================
    RCS file: /cvsroot/sybreon/aemb/sw/cc/aemb/hook.hh,v
    retrieving revision 1.7
    retrieving revision 1.8
    diff -u -b -r1.7 -r1.8
    --- hook.hh 26 Apr 2008 19:31:35 -0000 1.7
    +++ hook.hh 27 Apr 2008 16:04:42 -0000 1.8
    @@ -1,4 +1,4 @@
    -/* $Id: hook.hh,v 1.7 2008/04/26 19:31:35 sybreon Exp $
    +/* $Id: hook.hh,v 1.8 2008/04/27 16:04:42 sybreon Exp $
    **
    ** AEMB2 HI-PERFORMANCE CPU
    ** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@a...>
    @@ -90,9 +90,11 @@
    if (isThread0()) // main thread
    {
    // NOTE: Dupe the stack otherwise it will FAIL!
    - dupStack((int *)setStack(getStack() - (getStackSize() >> 1)),
    - (int *)getStack(),
    - (int *)getStackTop);
    + int oldstk = getStack();
    + int newstk = setStack(getStack() - (getStackSize() >> 1));
    + dupStack((unsigned int *)newstk,
    + (unsigned int *)oldstk,
    + (unsigned int *)getStackTop());
    signalMutex(); // exit critical section
    while (1) asm volatile ("nop"); // lock thread
    }
    @@ -136,11 +138,14 @@
    // The main programme needs to be compiled with optimisations turned
    // on (at least -O1). If not, the MUTEX value will be written to the
    // same RAM location, giving both threads the same value.
    -OPTIMISATION_REQUIRED XXX
    +OPTIMISATION_REQUIRED OPTIMISATION_REQUIRED
    #endif

    /*
    $Log: hook.hh,v $
    + Revision 1.8 2008/04/27 16:04:42 sybreon
    + Minor cosmetic changes.
    +
    Revision 1.7 2008/04/26 19:31:35 sybreon
    Made headers C compatible.




    1.6 aemb/sw/cc/aemb/stack.hh

    http://www.opencores.org/cvsweb.shtml/aemb/sw/cc/aemb/stack.hh.diff?r1=1.5&r2=1.6

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

    Index: stack.hh
    ===================================================================
    RCS file: /cvsroot/sybreon/aemb/sw/cc/aemb/stack.hh,v
    retrieving revision 1.5
    retrieving revision 1.6
    diff -u -b -r1.5 -r1.6
    --- stack.hh 26 Apr 2008 19:31:35 -0000 1.5
    +++ stack.hh 27 Apr 2008 16:04:42 -0000 1.6
    @@ -1,4 +1,4 @@
    -/* $Id: stack.hh,v 1.5 2008/04/26 19:31:35 sybreon Exp $
    +/* $Id: stack.hh,v 1.6 2008/04/27 16:04:42 sybreon Exp $
    **
    ** AEMB2 HI-PERFORMANCE CPU
    ** Copyright (C) 2004-2007 Shawn Tan Ser Ngiap <shawn.tan@a...>
    @@ -100,7 +100,7 @@
    @param endp end of the stack
    */

    - inline void dupStack(int *newp, int *oldp, int *endp)
    + inline void dupStack(unsigned int *newp, unsigned int *oldp, unsigned int *endp)
    {
    while (oldp < endp)
    {
    @@ -121,6 +121,9 @@

    /*
    $Log: stack.hh,v $
    + Revision 1.6 2008/04/27 16:04:42 sybreon
    + Minor cosmetic changes.
    +
    Revision 1.5 2008/04/26 19:31:35 sybreon
    Made headers C compatible.


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