Skip to content

Commit ef741b5

Browse files
author
Ian Seyler
committed
API update
1 parent 75279ff commit ef741b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/monitor.asm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ nextMAC:
113113
mov rdx, 0 ; Drive 0
114114
mov rdi, temp_string
115115
mov rsi, rdi
116-
call [b_storage_read]
116+
call [b_nvs_read]
117117
mov eax, [rsi+1024]
118118
cmp eax, 0x53464d42 ; "BMFS"
119119
je bmfs
@@ -130,7 +130,7 @@ bmfs:
130130
add rax, [UEFI_Disk_Offset]
131131
mov rcx, 1
132132
mov rdx, 0
133-
call [b_storage_read] ; Load the 4K BMFS file table
133+
call [b_nvs_read] ; Load the 4K BMFS file table
134134
mov rsi, initapp
135135
sub rdi, 64
136136
bmfs_next:
@@ -151,7 +151,7 @@ bmfs_next:
151151
add rcx, 4095 ; Add 1-byte less of a full sector amount
152152
shr rcx, 12 ; Quick divide by 4096
153153
mov rdx, 0
154-
call [b_storage_read] ; Load program
154+
call [b_nvs_read] ; Load program
155155
call [ProgramLocation] ; Execute program
156156

157157
poll:
@@ -315,7 +315,7 @@ dir_bmfs:
315315
add rax, [UEFI_Disk_Offset]
316316
mov rcx, 1
317317
mov rdx, 0
318-
call [b_storage_read] ; Load the 4K BMFS file table
318+
call [b_nvs_read] ; Load the 4K BMFS file table
319319
mov rax, 1
320320

321321
dir_bmfs_next:
@@ -378,7 +378,7 @@ load_bmfs:
378378
add rax, [UEFI_Disk_Offset]
379379
mov rcx, 1
380380
mov rdx, 0
381-
call [b_storage_read]
381+
call [b_nvs_read]
382382
; offset to file number, starting sector, and file size
383383
pop rcx ; Restore the file #
384384
shl rcx, 6
@@ -399,7 +399,7 @@ load_bmfs:
399399
add rcx, 4095 ; Add 1-byte less of a full sector amount
400400
shr rcx, 12 ; Quick divide by 4096
401401
mov rdx, 0
402-
call [b_storage_read]
402+
call [b_nvs_read]
403403
jmp poll
404404

405405
load_notfound:

0 commit comments

Comments
 (0)