Changeset 393f631 in mainline for arch/ppc/include


Ignore:
Timestamp:
2005-08-31T21:51:04Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
33ccb2c
Parents:
94f0ae4
Message:

many PPC stuff, platform dependent arch.h header files

Location:
arch/ppc/include
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc/include/asm.h

    r94f0ae4 r393f631  
    7979                "mfmsr %%r31\n"
    8080                "rlwimi  %0, %%r31, 0, 17, 15\n"
     81                "cmpw 0, %0, %%r31\n"
     82                "beq 0f\n"
    8183                "mtmsr %0\n"
     84                "0:\n"
    8285                : "=r" (pri)
    8386                : "0" (pri)
    8487                : "%r31"
    8588        );
     89}
     90
     91/** Return raw priority level
     92 *
     93 * Return EE.
     94 */
     95static inline pri_t cpu_priority_read(void) {
     96        pri_t v;
     97        __asm__ volatile (
     98                "mfmsr %0\n"
     99                : "=r" (v)
     100        );
     101        return v;
    86102}
    87103
  • arch/ppc/include/context.h

    r94f0ae4 r393f631  
    3131
    3232#include <arch/types.h>
    33 #include <arch/drivers/ofw.h>
    3433
    3534#define SP_DELTA        8
    36 
    37 #ifdef context_map_stack
    38 #undef context_map_stack
    39 #endif
    40 
    41 #define context_map_stack(stack, size) \
    42         ofw_claim((void *) stack, size, 0);
    4335
    4436struct context {
Note: See TracChangeset for help on using the changeset viewer.