forked from Imagelibrary/rtems
@@ -52,24 +52,3 @@ void _CPU_Exception_frame_print(const CPU_Exception_frame *ctx)
|
||||
void _CPU_Initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
void _CPU_ISR_install_raw_handler(
|
||||
uint32_t vector,
|
||||
proc_ptr new_handler,
|
||||
proc_ptr *old_handler
|
||||
)
|
||||
{
|
||||
amd64_install_raw_interrupt(
|
||||
vector,
|
||||
(uintptr_t) new_handler,
|
||||
(uintptr_t*) old_handler
|
||||
);
|
||||
}
|
||||
|
||||
void _CPU_ISR_install_vector(
|
||||
uint32_t vector,
|
||||
proc_ptr new_handler,
|
||||
proc_ptr *old_handler
|
||||
)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -284,18 +284,6 @@ void _CPU_Context_Initialize(
|
||||
|
||||
void _CPU_Initialize(void);
|
||||
|
||||
void _CPU_ISR_install_raw_handler(
|
||||
uint32_t vector,
|
||||
proc_ptr new_handler,
|
||||
proc_ptr *old_handler
|
||||
);
|
||||
|
||||
void _CPU_ISR_install_vector(
|
||||
uint32_t vector,
|
||||
proc_ptr new_handler,
|
||||
proc_ptr *old_handler
|
||||
);
|
||||
|
||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||
|
||||
void _CPU_Context_switch(
|
||||
|
||||
@@ -89,7 +89,7 @@ void _CPU_Context_Initialize(
|
||||
_stack &= ~(CPU_STACK_ALIGNMENT - 1);
|
||||
_stack -= sizeof(uintptr_t); /* fake return address for entry_point's frame;
|
||||
* this allows rsp+8 to be an aligned boundary */
|
||||
*((proc_ptr *) _stack) = entry_point;
|
||||
*((void (**)(void)) _stack) = entry_point;
|
||||
|
||||
the_context->rbp = (void *) 0;
|
||||
the_context->rsp = (void *) _stack;
|
||||
|
||||
Reference in New Issue
Block a user