src/ppe/pk/ppe42/ppe42.h
// These APIs are provided for applications to get and set the app_specific
// field of the kernel context which is held in sprg0.
These APIs are provided for applications to get and set the app_specific
field of the kernel context which is held in sprg0.
These APIs are provided for applications to get and set the app_specific field of the kernel context which is held in sprg0 .
static inline uint16_t ppe42_app_ctx_get(void)
{
__PkKernelContext __ctx;
__ctx.value = mfspr(SPRN_SPRG0);
return __ctx.fields.app_specific;
}
static inline uint16_t ppe42_app_ctx_get ( void ) { __PkKernelContext __ctx ; __ctx . value = mfspr ( SPRN_SPRG0 ) ; return __ctx . fields . app_specific ; }
These APIs are provided for applications to get and set the app_specific
field of the kernel context which is held in sprg0.
These APIs are provided for applications to get and set the app_specific field of the kernel context which is held in sprg0 .