Remove unused sector count
This commit is contained in:
@@ -11,7 +11,6 @@ endstruc
|
||||
; The partition has to be one of the primary MBR partitions.
|
||||
; OUT
|
||||
; eax - start_lba
|
||||
; edx - sector count
|
||||
; CLOBBER
|
||||
; ebx
|
||||
find_redoxfs_partition:
|
||||
@@ -26,7 +25,6 @@ find_redoxfs_partition:
|
||||
jmp .notfound
|
||||
.found:
|
||||
mov eax, [partitions + mbr_partition_rec + mbr_partition_rec.lba_start]
|
||||
mov edx, [partitions + mbr_partition_rec + mbr_partition_rec.sector_count]
|
||||
ret
|
||||
.notfound:
|
||||
mov si, .no_partition_found_msg
|
||||
|
||||
@@ -41,10 +41,8 @@ endstruc
|
||||
|
||||
; IN
|
||||
; eax - the first sector of the filesystem
|
||||
; edx - the amount of sectors in the filesystem
|
||||
redoxfs:
|
||||
mov [.first_sector], eax
|
||||
mov [.sector_count], ebx
|
||||
call redoxfs.open
|
||||
test eax, eax
|
||||
jz .good_header
|
||||
@@ -79,7 +77,6 @@ redoxfs:
|
||||
times BLOCK_SIZE db 0
|
||||
|
||||
.first_sector: dd 0
|
||||
.sector_count: dd 0
|
||||
|
||||
.env:
|
||||
db "REDOXFS_BLOCK="
|
||||
|
||||
@@ -28,7 +28,6 @@ startup:
|
||||
|
||||
%ifdef FILESYSTEM
|
||||
mov eax, (filesystem - boot) / 512
|
||||
mov ebx, (filesystem.end - filesystem) / 512
|
||||
%else
|
||||
call find_redoxfs_partition
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user