x86_64: rename struct cpu_context; move to machine/cpu.h
This commit is contained in:
@@ -39,7 +39,7 @@ static void set_idt_gate(
|
||||
idt->i_entries[index].reserved = 0;
|
||||
}
|
||||
|
||||
static void gpf_handler(struct cpu_context *regs)
|
||||
static void gpf_handler(struct ml_cpu_context *regs)
|
||||
{
|
||||
int ext = regs->err_no & 1;
|
||||
int table = (regs->err_no >> 1) & 0x03;
|
||||
@@ -55,7 +55,7 @@ static void gpf_handler(struct cpu_context *regs)
|
||||
regs->rip);
|
||||
}
|
||||
|
||||
static void pf_handler(struct cpu_context *regs)
|
||||
static void pf_handler(struct ml_cpu_context *regs)
|
||||
{
|
||||
panic_irq(
|
||||
regs,
|
||||
@@ -141,7 +141,7 @@ int idt_load(struct idt_ptr *ptr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void isr_dispatch(struct cpu_context *regs)
|
||||
void isr_dispatch(struct ml_cpu_context *regs)
|
||||
{
|
||||
int_hook h = isr_handlers[regs->int_no];
|
||||
if (h) {
|
||||
@@ -160,7 +160,7 @@ void irq_ack(unsigned int vec)
|
||||
outportb(0x20, 0x20);
|
||||
}
|
||||
|
||||
void irq_dispatch(struct cpu_context *regs)
|
||||
void irq_dispatch(struct ml_cpu_context *regs)
|
||||
{
|
||||
end_charge_period();
|
||||
|
||||
@@ -178,7 +178,7 @@ void irq_dispatch(struct cpu_context *regs)
|
||||
start_charge_period();
|
||||
}
|
||||
|
||||
void syscall_dispatch(struct cpu_context *regs)
|
||||
void syscall_dispatch(struct ml_cpu_context *regs)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user