aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/atapi_pio.c
diff options
context:
space:
mode:
authorMarvin Borner2019-11-23 00:36:28 +0100
committerMarvin Borner2019-11-23 00:36:28 +0100
commit45d9495e77dba212551ae9bc8e09b51e9ed6d324 (patch)
tree1e8ead9a55b41fa009c28823ca7a9ac0b1b5b2fe /src/kernel/fs/atapi_pio.c
parent4b178c0feb4c415be36be0e4c0def8c447ed42af (diff)
Tried implementing memory based paging...
Also did many other fixes/improvements. While I think I did most things correct, the ACPI doesn't work anymore (triple fault) and the resolution detection fails with 0x2... :c
Diffstat (limited to 'src/kernel/fs/atapi_pio.c')
-rw-r--r--src/kernel/fs/atapi_pio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/fs/atapi_pio.c b/src/kernel/fs/atapi_pio.c
index 4f986d9..e64cd75 100644
--- a/src/kernel/fs/atapi_pio.c
+++ b/src/kernel/fs/atapi_pio.c
@@ -19,9 +19,7 @@ void ATAPI_read(uint16_t nblocks, uint32_t lba) {
regs.ds = 0;
regs.si = ATAPI_PIO_DAPACK;
- paging_disable();
- int32(LBA_READ_INT, &regs);
- paging_enable();
+ v86(LBA_READ_INT, &regs);
}
void ATAPI_granular_read(uint32_t nblocks, uint32_t lba, uint8_t *output) {