@@ -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
136136bmfs_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
157157poll:
@@ -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
321321dir_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
405405load_notfound:
0 commit comments