summaryrefslogtreecommitdiff
path: root/core/stack.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/stack.inc')
-rw-r--r--core/stack.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/stack.inc b/core/stack.inc
index f670dec0..3a4b60b3 100644
--- a/core/stack.inc
+++ b/core/stack.inc
@@ -1,6 +1,7 @@
; -----------------------------------------------------------------------
;
; Copyright 2005-2008 H. Peter Anvin - All Rights Reserved
+; Copyright 2009 Intel Corporation; author: H. Peter Anvin
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
@@ -29,16 +30,11 @@
xor %1,%1
mov ds,%1
mov es,%1
-%if IS_SYSLINUX || IS_EXTLINUX
- mov ss,%1 ; Just in case...
- mov sp,StackBuf-2*5 ; Reset stack
-%elif IS_PXELINUX
+%if IS_PXELINUX
lss esp,[BaseStack]
-%elif IS_ISOLINUX
- mov ss,%1
- mov sp,StackBuf-2*2
%else
- NEED TO KNOW HOW TO RESET STACK
+ mov ss,%1
+ mov esp,StackTop
%endif
sti
cld