x86_64: Remove use of proc_ptr

Update #3585.
This commit is contained in:
Sebastian Huber
2018-11-08 16:06:44 +01:00
parent 70928bc98b
commit 4539e30762
3 changed files with 1 additions and 34 deletions

View File

@@ -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
)
{
}

View File

@@ -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(

View File

@@ -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;