about summary refs log tree commit diff stats
path: root/317abort.subx
diff options
context:
space:
mode:
Diffstat (limited to '317abort.subx')
-rw-r--r--317abort.subx7
1 files changed, 2 insertions, 5 deletions
diff --git a/317abort.subx b/317abort.subx
index 5ee3b37f..2b464658 100644
--- a/317abort.subx
+++ b/317abort.subx
@@ -81,11 +81,8 @@ load-debug-symbols:  # labels: (addr stream {start-address, label-slice})
     c7 0/subop/copy *ecx 0/imm32  # write index
     c7 0/subop/copy *(ecx+4) 0/imm32  # read index
     c7 0/subop/copy *(ecx+8) 0x01000000/imm32  # stream capacity = 16MB
-    # load 0x400 sectors starting from sector 10080 = 0x2760
-    (read-ata-disk Primary-bus-primary-drive 0x2760 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2860 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2960 0x100 %ecx)
-    (read-ata-disk Primary-bus-primary-drive 0x2a60 0x100 %ecx)
+    # load sectors starting from sector 10080 = 0x2760
+    (load-sectors Primary-bus-primary-drive 0x2760 0x800 %ecx)  # 0x800 sectors = 1MB
     # - parse pointers to portions of this stream into labels
     # var curr/ecx: (addr byte) = s->data
     81 0/subop/add %ecx 0xc/imm32