From 4a0bec74c6d36d4b6c5392e325563e334f0c7f9f Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Thu, 22 Dec 2005 11:38:36 +0000 Subject: [PATCH] Bug leading to crash during restart from memory fixed git-svn-id: svn://kolibrios.org@30 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/shutdown.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/boot/shutdown.inc b/kernel/trunk/boot/shutdown.inc index 9bd9047895..3dd13ea47b 100644 --- a/kernel/trunk/boot/shutdown.inc +++ b/kernel/trunk/boot/shutdown.inc @@ -323,6 +323,7 @@ restart_kernel: restart_kernel_4000: + cli mov di,0x1000 ; load kernel image from 0x8000:0 -> 0x1000:0 @@ -351,9 +352,10 @@ restart_kernel_4000: mov ax,0x1000 mov es,ax - mov ax,0x2000 + mov ax,0x3000 mov ss,ax - mov sp,0xff00 + mov sp,0xec00 + sti jmp 0x1000:0000