[if gte mso 9]>

Re: [edk2] DuetPkg: st32_64.S mistakes

Subject: Re: [edk2] DuetPkg: st32_64.S mistakes

From: "Sun, Rui" <rui.sun@intel.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2012-01-10 12:31:42

Hi, Sergey,

 

Please verify if the check in of #12921 fixes your problem.

 

Thanks,

Rui

 

From: Sergey Isakov [mailto:isakov-sl@bk.ru]
Sent: Monday, January 09, 2012 6:07 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] DuetPkg: st32_64.S mistakes

 

Hi,

Please find a difference

---------------------

--- st32_64.S   2011-11-17 21:56:01.000000000 +0400

+++ st32_64-new.S    2012-01-09 01:51:48.000000000 +0400

@@ -27,6 +27,10 @@

 .equ                        BLOCK_SHIFT, 9

 

        .org 0x0

+

+.global _start

+_start:

+              

 Ia32Jump: 

   jmp   BootSectorEntryPoint  # JMP inst    - 3 bytes

   nop

@@ -142,7 +146,7 @@

         .byte 0xea

 jumpOffset: 

         .word 0x200

-jumpSegment: 

+JumpSegment: 

         .word 0x2000

 

 @@ -446,7 +458,7 @@

     #

     # Enable Protect Mode (set CR0.PE=1)

     #

-    movl  $cr0, %eax      # Read CR0.

+    movl  %cr0, %eax      # Read CR0.

     orl   $0x1,%eax       # Set PE=1

     movl  %eax, %cr0      # Write CR0.

     .byte 0x66

@@ -518,7 +530,7 @@

     #

     # Enable paging to activate long mode (set CR0.PG=1)

     #

-    movl  $cr0, %eax      # Read CR0.

+    movl  %cr0, %eax      # Read CR0.

     .byte 0xf

     .byte 0xba

     .byte 0xe8

----------------------

Sergey