From caad4780fae735399a779c86dc383a42aaad61ac Mon Sep 17 00:00:00 2001 From: hpa Date: Sun, 19 Dec 2004 07:30:31 +0000 Subject: [PATCH] Make compressed vkernels actually work. --- ui.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ui.inc b/ui.inc index 1339905..17464bc 100644 --- a/ui.inc +++ b/ui.inc @@ -229,18 +229,25 @@ clin_opt_ok: ; vk_check: xor si,si ; Beginning of vk_seg - push word vk_seg - pop ds .scan: cmp si,[VKernelBytes] jae .not_vk + + push ds + push word vk_seg + pop ds + mov di,VKernelBuf call rllunpack + pop ds ; SI updated on return + sub di,cx ; Return to beginning of buf push si + mov si,KernelName mov cx,FILENAME_MAX es repe cmpsb + pop si je .found jmp .scan @@ -281,8 +288,6 @@ vk_check: %endif .not_vk: - push cs - pop ds ; ; Not a "virtual kernel" - check that's OK and construct the command line -- 2.7.4