Remove unused sector count

This commit is contained in:
Jeremy Soller
2020-02-05 20:52:43 -07:00
parent 5abe28fd45
commit e08e3b301d
3 changed files with 0 additions and 6 deletions
-2
View File
@@ -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
-3
View File
@@ -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="
-1
View File
@@ -28,7 +28,6 @@ startup:
%ifdef FILESYSTEM
mov eax, (filesystem - boot) / 512
mov ebx, (filesystem.end - filesystem) / 512
%else
call find_redoxfs_partition
%endif