Ignore:
Timestamp:
2010-05-22T22:56:00Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c555155
Parents:
86a3f89b
Message:

restructure constants
change the return type of pic_get_pending()
coding style changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/exception.h

    r86a3f89b rffe276f  
    2727 */
    2828
    29 /** @addtogroup ppc32   
     29/** @addtogroup ppc32
    3030 * @{
    3131 */
     
    3737
    3838#include <typedefs.h>
    39 #include <arch/regutils.h>
     39#include <arch/cpu.h>
    4040
    4141typedef struct istate {
     
    8686}
    8787
    88 /** Return true if exception happened while in userspace */
     88/** Return true if exception happened while in userspace
     89 *
     90 * The contexts of MSR register was stored in SRR1.
     91 *
     92 */
    8993static inline int istate_from_uspace(istate_t *istate)
    9094{
    91         /* true if privilege level PR (copied from MSR) == 1 */
    9295        return (istate->srr1 & MSR_PR) != 0;
    9396}
Note: See TracChangeset for help on using the changeset viewer.