Ignore:
Timestamp:
Jul 17, 2017, 2:14:21 PM (7 years ago)
Author:
max@…
Message:

use the asm entry point to save the context

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/drivers/ioc_ata.c

    r215 r220  
    2323#include <dev_ioc.h>
    2424#include <hal_drivers.h>
     25#include <hal_kentry.h>
    2526#include <thread.h>
    2627#include <spinlock.h>
     
    175176
    176177static void ioc_ata_cmd(xptr_t th_xp);
    177 static void ioc_ata_isr(chdev_t *chdev);
     178extern void x86_ioapic_ata0();
    178179
    179180void ioc_ata_init(chdev_t *chdev)
    180181{
    181182        chdev->cmd = &ioc_ata_cmd;
    182         chdev->isr = &ioc_ata_isr;
     183        chdev->isr = &x86_ioapic_ata0;
    183184        ata_init();
    184185}
     
    217218}
    218219
    219 static void ioc_ata_isr(chdev_t *chdev)
    220 {
     220void ioc_ata_isr(hal_cpu_context_t *ctx)
     221{
     222        x86_printf("rip = %Z\n", ctx->tf_rip);
     223
    221224        x86_panic((char *)__func__);
    222225}
Note: See TracChangeset for help on using the changeset viewer.