Spinlock save cpu flags
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
#include <amd64/io.h>
|
||||
#include <device/device.h>
|
||||
#include <device/idedrv.h>
|
||||
#include <device/partitions.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_info.h>
|
||||
#include <device/partitions.h>
|
||||
#include <devices.h>
|
||||
#include <libk/fieldsizeof.h>
|
||||
#include <libk/lengthof.h>
|
||||
#include <libk/printf.h>
|
||||
#include <libk/std.h>
|
||||
#include <sys/debug.h>
|
||||
#include <proc/proc.h>
|
||||
#include <proc/reschedule.h>
|
||||
#include <sys/debug.h>
|
||||
|
||||
static atomic_int ide_counter = 0;
|
||||
|
||||
@@ -30,7 +30,8 @@ static const char* progif_msg[] = {
|
||||
"PCI native mode controller, supports both channels switched to ISA compatibility mode, supports bus mastering",
|
||||
};
|
||||
|
||||
static void ide_make_device (struct proc* proc, struct reschedule_ctx* rctx, struct ide_probe probe) {
|
||||
static void ide_make_device (struct proc* proc, struct reschedule_ctx* rctx,
|
||||
struct ide_probe probe) {
|
||||
DEBUG ("Found IDE drive: io=%x ctrl=%x no=%u sector=%zu count=%zu\n", probe.io, probe.ctrl,
|
||||
probe.devno, probe.sector_size, probe.sector_count);
|
||||
|
||||
@@ -54,7 +55,8 @@ static void ide_make_device (struct proc* proc, struct reschedule_ctx* rctx, str
|
||||
.devno = probe.devno,
|
||||
.primscnd = probe.primscnd,
|
||||
};
|
||||
struct device* ide = device_create (device_key, ops, lengthof (ops), &idedrv_init, &idedrv_fini, &init, proc, rctx);
|
||||
struct device* ide = device_create (device_key, ops, lengthof (ops), &idedrv_init, &idedrv_fini,
|
||||
&init, proc, rctx);
|
||||
device_probe_partitions (proc, rctx, ide);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user