#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
orb $2, %al\r
outb %al, $0x92 # deactivate A20M#\r
2:\r
- movw %ss, %ax\r
+ xorw %ax, %ax # xor eax, eax \r
+ movl %ss, %eax # mov ax, ss\r
.byte 0x67, 0x66, 0x8d, 0x6c, 0x24, 0x34, 0x66\r
mov %ebp, 0xffffffd8(%esi)\r
mov 0xfffffff8(%esi), %ebx\r
-; Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials \r
; are licensed and made available under the terms and conditions of the BSD License \r
; which accompanies this distribution. The full text of the license may be found at \r
or al, 2\r
out 92h, al ; deactivate A20M#\r
@2:\r
- mov ax, ss\r
+ xor ax, ax ; xor eax, eax\r
+ mov eax, ss ; mov ax, ss\r
DB 67h\r
lea bp, [esp + sizeof (IA32_REGS)]\r
;\r
#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
orb $2,%al\r
outb %al, $0x92 # deactivate A20M#\r
L_2: \r
- movw %ss,%ax\r
+ xorw %ax,%ax # xor eax, eax\r
+ movl %ss,%eax # mov ax, ss\r
lea IA32_REGS_SIZE(%esp), %bp\r
#\r
# rsi in the following 2 instructions is indeed bp in 16-bit code\r
-; Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials \r
; are licensed and made available under the terms and conditions of the BSD License \r
; which accompanies this distribution. The full text of the license may be found at \r
or al, 2\r
out 92h, al ; deactivate A20M#\r
@2:\r
- mov ax, ss\r
+ xor ax, ax ; xor eax, eax\r
+ mov eax, ss ; mov ax, ss\r
lea bp, [esp + sizeof (IA32_REGS)]\r
;\r
; rsi in the following 2 instructions is indeed bp in 16-bit code\r
#*****************************************************************************\r
#*\r
-#* Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#* Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
#* This program and the accompanying materials \r
#* are licensed and made available under the terms and conditions of the BSD License \r
#* which accompanies this distribution. The full text of the license may be found at \r
.byte 0xfc\r
\r
L_Lable1:\r
- movl %ss,%eax\r
+ xor %eax,%eax\r
+ movw %ss,%ax\r
shl $0x4,%eax\r
add %esp,%eax\r
lss 0x3c(%esp),%esp\r
;*****************************************************************************\r
;*\r
-;* Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+;* Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
;* This program and the accompanying materials \r
;* are licensed and made available under the terms and conditions of the BSD License \r
;* which accompanies this distribution. The full text of the license may be found at \r
mov cr4, eax ; disable PAE & PSE\r
db 67h, 0FFh, 06Ch, 024h, 0FCh ; jmp dword ptr [esp-4]\r
@@:\r
- mov eax, ss\r
+ xor eax, eax\r
+ mov ax, ss\r
shl eax, 4\r
add eax, esp ; eax <- address of 16-bit stack\r
lss esp, fword ptr (_STK16 ptr [esp + sizeof (IA32_REGS)]).SavedEsp\r
\r
Label:\r
xor %rax,%rax\r
- movl %ss,%eax\r
+ movw %ss,%ax\r
shl $0x4,%eax\r
add %esp,%eax\r
mov %r15,%rsp\r
retf\r
@@:\r
xor rax, rax\r
- mov eax, ss\r
+ mov ax, ss\r
shl eax, 4\r
add eax, esp ; rax <- address of 16-bit stack\r
mov rsp, r15\r