kernel: make ramdisk_init return pointer to disk structure.
git-svn-id: svn://kolibrios.org@8064 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
51fcac25ee
commit
cdcaf70ae3
@ -45,6 +45,7 @@ endg
|
|||||||
; so try to calculate it using partition structure,
|
; so try to calculate it using partition structure,
|
||||||
; assuming that file systems fill the real size based on contents of the partition.
|
; assuming that file systems fill the real size based on contents of the partition.
|
||||||
; 2a. Prepare for loop over partitions.
|
; 2a. Prepare for loop over partitions.
|
||||||
|
xor eax, eax
|
||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
xor edx, edx
|
xor edx, edx
|
||||||
; 2b. Check that at least one partition was recognized.
|
; 2b. Check that at least one partition was recognized.
|
||||||
@ -80,6 +81,7 @@ endg
|
|||||||
dec esi
|
dec esi
|
||||||
jnz @b
|
jnz @b
|
||||||
.no_reclaim:
|
.no_reclaim:
|
||||||
|
mov eax, ebx
|
||||||
pop esi ebx ; restore used registers to be stdcall
|
pop esi ebx ; restore used registers to be stdcall
|
||||||
ret
|
ret
|
||||||
.fail:
|
.fail:
|
||||||
|
Loading…
Reference in New Issue
Block a user