From cdcaf70ae3950de2f18b0262ed59d9596f95a1f5 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Fri, 18 Sep 2020 12:46:25 +0000 Subject: [PATCH] kernel: make ramdisk_init return pointer to disk structure. git-svn-id: svn://kolibrios.org@8064 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/rd.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/blkdev/rd.inc b/kernel/trunk/blkdev/rd.inc index 9ef791e1be..8ae2bccc27 100644 --- a/kernel/trunk/blkdev/rd.inc +++ b/kernel/trunk/blkdev/rd.inc @@ -45,6 +45,7 @@ endg ; so try to calculate it using partition structure, ; assuming that file systems fill the real size based on contents of the partition. ; 2a. Prepare for loop over partitions. + xor eax, eax xor ecx, ecx xor edx, edx ; 2b. Check that at least one partition was recognized. @@ -80,6 +81,7 @@ endg dec esi jnz @b .no_reclaim: + mov eax, ebx pop esi ebx ; restore used registers to be stdcall ret .fail: