forked from Imagelibrary/rtems
powerpc: Fix Altivec support
Use the right context.
This commit is contained in:
@@ -129,6 +129,6 @@ void _CPU_Context_Initialize(
|
|||||||
the_ppc_context->lr = (uint32_t) entry_point;
|
the_ppc_context->lr = (uint32_t) entry_point;
|
||||||
|
|
||||||
#ifdef __ALTIVEC__
|
#ifdef __ALTIVEC__
|
||||||
_CPU_Context_initialize_altivec(the_context);
|
_CPU_Context_initialize_altivec( the_ppc_context );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1082,8 +1082,8 @@ _CPU_Initialize_altivec(void);
|
|||||||
|
|
||||||
void
|
void
|
||||||
_CPU_Context_switch_altivec(
|
_CPU_Context_switch_altivec(
|
||||||
Context_Control *from,
|
ppc_context *from,
|
||||||
Context_Control *to
|
ppc_context *to
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1094,7 +1094,7 @@ _CPU_Context_switch_altivec(
|
|||||||
|
|
||||||
void
|
void
|
||||||
_CPU_Context_restore_altivec(
|
_CPU_Context_restore_altivec(
|
||||||
Context_Control *ctxt
|
ppc_context *ctxt
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1105,7 +1105,7 @@ _CPU_Context_restore_altivec(
|
|||||||
|
|
||||||
void
|
void
|
||||||
_CPU_Context_initialize_altivec(
|
_CPU_Context_initialize_altivec(
|
||||||
Context_Control *ctxt
|
ppc_context *ctxt
|
||||||
);
|
);
|
||||||
|
|
||||||
void _CPU_Fatal_error(
|
void _CPU_Fatal_error(
|
||||||
|
|||||||
Reference in New Issue
Block a user