Skip to content
Snippets Groups Projects
Verified Commit e08e3b30 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Remove unused sector count

parent 5abe28fd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment