Changeset b281e42 in rtems


Ignore:
Timestamp:
Aug 14, 2008, 3:24:51 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4daebbd
Parents:
80863b11
Message:

2008-08-14 Sebastian Huber <sebastian.huber@…>

  • rtems/powerpc/registers.h: Removed obsolete defines MSR_, MSR_KERNEL and MSR_USER. Added missing prototypes.
Location:
cpukit/score/cpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/powerpc/ChangeLog

    r80863b11 rb281e42  
     12008-08-14      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * rtems/powerpc/registers.h: Removed obsolete defines MSR_, MSR_KERNEL
     4        and MSR_USER.  Added missing prototypes.
     5
    162008-08-04      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/score/cpu/powerpc/rtems/powerpc/registers.h

    r80863b11 rb281e42  
    4040#define MSR_RI          (1<<1)          /* Recoverable Exception */
    4141#define MSR_LE          (1<<0)          /* Little-Endian enable */
    42 
    43 #define MSR_            MSR_ME|MSR_RI
    44 #define MSR_KERNEL      MSR_|MSR_IR|MSR_DR
    45 #define MSR_USER        MSR_KERNEL|MSR_PR|MSR_EE
    4642
    4743/* Bit encodings for Hardware Implementation Register (HID0)
     
    350346}
    351347
    352 static inline uint32_t ppc_interrupt_get_disable_mask()
     348static inline uint32_t ppc_interrupt_get_disable_mask( void)
    353349{
    354 uint32_t mask;
     350  uint32_t mask;
     351
    355352  asm volatile (
    356     "mfspr %0,272"
     353    "mfspr %0, 272"
    357354    : "=r" (mask)
    358355  );
     356
    359357  return mask;
    360358}
    361359
    362 static inline uint32_t ppc_interrupt_disable()
     360static inline uint32_t ppc_interrupt_disable( void)
    363361{
    364362  uint32_t level;
Note: See TracChangeset for help on using the changeset viewer.