Ignore:
Timestamp:
2013-12-28T17:16:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/istate.h

    rf6f22cdb r32e8cd1  
    4949#endif /* KERNEL */
    5050
    51 /*
    52  * On real hardware this stores the registers which
    53  * need to be preserved during interupts.
    54  */
    5551typedef struct istate {
    5652        uintptr_t pstate;
     
    6359    REQUIRES_EXTENT_MUTABLE(istate)
    6460{
    65         /* On real hardware this checks whether the interrupted
    66            context originated from user space. */
    67 
    6861        return !(istate->pc & UINT32_C(0x80000000));
    6962}
     
    7366    WRITES(&istate->ip)
    7467{
    75         /* On real hardware this sets the instruction pointer. */
    76        
    7768        istate->pc = retaddr;
    7869}
     
    8172    REQUIRES_EXTENT_MUTABLE(istate)
    8273{
    83         /* On real hardware this returns the instruction pointer. */
    84        
    8574        return istate->pc;
    8675}
     
    8978    REQUIRES_EXTENT_MUTABLE(istate)
    9079{
    91         /* On real hardware this returns the frame pointer. */
    92        
    93         return 0;//istate->fp;
     80        return 0;
    9481}
    9582
Note: See TracChangeset for help on using the changeset viewer.