~ubuntu-branches/ubuntu/trusty/ipxe/trusty

« back to all changes in this revision

Viewing changes to src/arch/i386/image/elfboot.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-11-26 17:50:47 UTC
  • mfrom: (1.2.2)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: package-import@ubuntu.com-20131126175047-rrtzcroy6yyz7lqp
Tags: upstream-1.0.0+git-20131111.c3d1e78
ImportĀ upstreamĀ versionĀ 1.0.0+git-20131111.c3d1e78

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
        /* Jump to OS with flat physical addressing */
62
62
        DBGC ( image, "ELF %p starting execution at %lx\n", image, entry );
63
 
        __asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" )
 
63
        __asm__ __volatile__ ( PHYS_CODE ( "pushl %%ebp\n\t" /* gcc bug */
 
64
                                           "call *%%edi\n\t"
 
65
                                           "popl %%ebp\n\t" /* gcc bug */ )
64
66
                               : : "D" ( entry )
65
 
                               : "eax", "ebx", "ecx", "edx", "esi", "ebp",
66
 
                                 "memory" );
 
67
                               : "eax", "ebx", "ecx", "edx", "esi", "memory" );
67
68
 
68
69
        DBGC ( image, "ELF %p returned\n", image );
69
70