Changeset 693f614 in mainline


Ignore:
Timestamp:
2008-09-14T11:18:07Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b968f39
Parents:
ac02aaa
Message:

Merge changeset 3114 from tracing into trunk. (implementation of istate_from_uspace() for ppc32)

Location:
kernel/arch/ppc32/include
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/asm/regname.h

    rac02aaa r693f614  
    215215
    216216/* MSR bits */
    217 #define msr_ir  (1 << 4)
    218 #define msr_dr  (1 << 5)
     217#define msr_dr  (1 << 4)
     218#define msr_ir  (1 << 5)
    219219#define msr_pr  (1 << 14)
    220220#define msr_ee  (1 << 15)
  • kernel/arch/ppc32/include/exception.h

    rac02aaa r693f614  
    3737
    3838#include <arch/types.h>
     39#include <arch/regutils.h>
    3940
    4041typedef struct {
     
    8586
    8687/** Return true if exception happened while in userspace */
    87 #include <panic.h>
    8888static inline int istate_from_uspace(istate_t *istate)
    8989{
    90         panic("istate_from_uspace not yet implemented");
    91         return 0;
     90        /* true if privilege level PR (copied from MSR) == 1 */
     91        return (istate->srr1 & MSR_PR) != 0;
    9292}
    9393
Note: See TracChangeset for help on using the changeset viewer.