x86_64: rename struct cpu_context; move to machine/cpu.h
This commit is contained in:
@@ -91,7 +91,7 @@ static void print_rflags(uintptr_t rflags)
|
||||
printk(buf);
|
||||
}
|
||||
|
||||
void ml_print_cpu_state(struct cpu_context *ctx)
|
||||
void ml_print_cpu_state(struct ml_cpu_context *ctx)
|
||||
{
|
||||
printk("cpu state:");
|
||||
if (ctx) {
|
||||
@@ -173,7 +173,7 @@ void ml_print_stack_trace(uintptr_t ip)
|
||||
print_stack_trace(ip, bp);
|
||||
}
|
||||
|
||||
void ml_print_stack_trace_irq(struct cpu_context *ctx)
|
||||
void ml_print_stack_trace_irq(struct ml_cpu_context *ctx)
|
||||
{
|
||||
print_stack_trace(ctx->rip, (uintptr_t *)ctx->rbp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user