Ignore:
Timestamp:
Mar 12, 2018, 7:53:09 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
5, master
Children:
478dc89
Parents:
c0443b4
git-author:
Joel Sherrill <joel@…> (03/12/18 19:53:09)
git-committer:
Joel Sherrill <joel@…> (03/13/18 14:55:23)
Message:

Add PowerPC paravirtualization support

Cannot read or write MSR when executing in user mode. This
is used when RTEMS_PARAVIRT is defined.

Provide alternate methods to disable/enable interrupts

Closes #3306.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/powerpc/include/rtems/score/cpu.h

    rc0443b4 r0a7a30d  
    3737
    3838#include <rtems/score/basedefs.h>
     39#if defined(RTEMS_PARAVIRT)
     40#include <rtems/score/paravirt.h>
     41#endif
    3942#include <rtems/score/powerpc.h>
    4043#include <rtems/powerpc/registers.h>
     
    655658}
    656659
     660#if !defined(PPC_DISABLE_INLINE_ISR_DISABLE_ENABLE)
     661
    657662static inline uint32_t   _CPU_ISR_Get_level( void )
    658663{
     
    675680  _CPU_MSR_SET(msr);
    676681}
     682#else
     683/* disable, enable, etc. are in registers.h */
     684uint32_t ppc_get_interrupt_level( void );
     685void ppc_set_interrupt_level( uint32_t level );
     686#define _CPU_ISR_Get_level( _new_level ) ppc_get_interrupt_level()
     687#define _CPU_ISR_Set_level( _new_level ) ppc_set_interrupt_level(_new_level)
     688#endif
    677689
    678690#endif /* ASM */
Note: See TracChangeset for help on using the changeset viewer.