Changeset 52228 in vbox
- Timestamp:
- Jul 29, 2014 3:06:47 PM (10 years ago)
- Location:
- trunk/src/VBox/Devices/PC/ipxe
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/ipxe/README.vbox
r52227 r52228 1 These iPXE sources were taken from git.ipxe.org. The commit is 2 a33298dcda4f9b6037e1c21f3d6f056dba77ab18 . 1 These iPXE sources were taken from git.ipxe.org. 2 3 Initial commit: a33298dcda4f9b6037e1c21f3d6f056dba77ab18 4 5 Manually applied 238050dfd46e3c4a87329da1d48b4d8dde5af8a1 and 6 cba22d36b77da53890bd65fdadd0e63925687af0 manually to make it 7 compile with recent gcc versions not allowing the ebp register 8 to be clobbered. -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/drivers/net/undiload.c
r47928 r52228 97 97 /* Call loader */ 98 98 undi_loader_entry = undirom->loader_entry; 99 __asm__ __volatile__ ( REAL_CODE ( "pushw %%ds\n\t" 99 __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 100 "pushw %%ds\n\t" 100 101 "pushw %%ax\n\t" 101 102 "lcall *undi_loader_entry\n\t" 102 "addw $4, %%sp\n\t" ) 103 "popl %%ebp\n\t" /* discard */ 104 "popl %%ebp\n\t" /* gcc bug */ ) 103 105 : "=a" ( exit ) 104 106 : "a" ( __from_data16 ( &undi_loader ) ) 105 : "ebx", "ecx", "edx", "esi", "edi" , "ebp");107 : "ebx", "ecx", "edx", "esi", "edi" ); 106 108 107 109 if ( exit != PXENV_EXIT_SUCCESS ) { -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pcbios/bios_console.c
r47928 r52228 167 167 168 168 /* Print character with attribute */ 169 __asm__ __volatile__ ( REAL_CODE ( "sti\n\t" 169 __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 170 "sti\n\t" 170 171 /* Skip non-printable characters */ 171 172 "cmpb $0x20, %%al\n\t" … … 188 189 "movb $0x0e, %%ah\n\t" 189 190 "int $0x10\n\t" 190 "cli\n\t" ) 191 "cli\n\t" 192 "popl %%ebp\n\t" /* gcc bug */ ) 191 193 : "=a" ( discard_a ), "=b" ( discard_b ), 192 194 "=c" ( discard_c ) 193 : "a" ( character ), "b" ( bios_attr ) 194 : "ebp" ); 195 : "a" ( character ), "b" ( bios_attr ) ); 195 196 } 196 197 -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/image/bootsector.c
r47928 r52228 80 80 "movw %%ax, %%cs:saved_ss\n\t" 81 81 "movw %%sp, %%cs:saved_sp\n\t" 82 /* Jump to boot sector */ 82 /* Save frame pointer (gcc bug) */ 83 "movl %%ebp, %%cs:saved_ebp\n\t" 84 /* Prepare jump to boot sector */ 83 85 "pushw %%bx\n\t" 84 86 "pushw %%di\n\t" … … 86 88 "lret\n\t" 87 89 /* Preserved variables */ 90 "\nsaved_ebp: .long 0\n\t" 88 91 "\nsaved_ss: .word 0\n\t" 89 92 "\nsaved_sp: .word 0\n\t" … … 91 94 /* Boot failure return point */ 92 95 "\nbootsector_exec_fail:\n\t" 96 /* Restore frame pointer (gcc bug) */ 97 "movl %%cs:saved_ebp, %%ebp\n\t" 93 98 /* Restore stack pointer */ 94 99 "movw %%cs:saved_ss, %%ax\n\t" … … 101 106 : "b" ( segment ), "D" ( offset ), 102 107 "d" ( drive ) 103 : "eax", "ecx", "esi" , "ebp");108 : "eax", "ecx", "esi" ); 104 109 105 110 DBG ( "Booted disk returned via INT 18 or 19\n" ); -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/image/elfboot.c
r47928 r52228 60 60 /* Jump to OS with flat physical addressing */ 61 61 DBGC ( image, "ELF %p starting execution at %lx\n", image, entry ); 62 __asm__ __volatile__ ( PHYS_CODE ( "call *%%edi\n\t" ) 62 __asm__ __volatile__ ( PHYS_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 63 "call *%%edi\n\t" 64 "popl %%ebp\n\t" /* gcc bug */ ) 63 65 : : "D" ( entry ) 64 : "eax", "ebx", "ecx", "edx", "esi", "ebp", 65 "memory" ); 66 : "eax", "ebx", "ecx", "edx", "esi", "memory" ); 66 67 67 68 DBGC ( image, "ELF %p returned\n", image ); -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/image/nbi.c
r47928 r52228 254 254 255 255 __asm__ __volatile__ ( 256 REAL_CODE ( "pushw %%ds\n\t" /* far pointer to bootp data */ 256 REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 257 "pushw %%ds\n\t" /* far pointer to bootp data */ 257 258 "pushw %%bx\n\t" 258 259 "pushl %%esi\n\t" /* location */ … … 264 265 "lret\n\t" 265 266 "\n2:\n\t" 266 "addw $8,%%sp\n\t" /* clean up stack */ ) 267 "addw $8,%%sp\n\t" /* clean up stack */ 268 "popl %%ebp\n\t" /* gcc bug */ ) 267 269 : "=a" ( rc ), "=D" ( discard_D ), "=S" ( discard_S ), 268 270 "=b" ( discard_b ) … … 270 272 "S" ( imgheader->location ), 271 273 "b" ( __from_data16 ( basemem_packet ) ) 272 : "ecx", "edx" , "ebp");274 : "ecx", "edx" ); 273 275 274 276 return rc; … … 290 292 /* Jump to OS with flat physical addressing */ 291 293 __asm__ __volatile__ ( 292 PHYS_CODE ( "pushl %%ebx\n\t" /* bootp data */ 294 PHYS_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 295 "pushl %%ebx\n\t" /* bootp data */ 293 296 "pushl %%esi\n\t" /* imgheader */ 294 297 "pushl %%eax\n\t" /* loaderinfo */ 295 298 "call *%%edi\n\t" 296 "addl $12, %%esp\n\t" /* clean up stack */ ) 299 "addl $12, %%esp\n\t" /* clean up stack */ 300 "popl %%ebp\n\t" /* gcc bug */ ) 297 301 : "=a" ( rc ), "=D" ( discard_D ), "=S" ( discard_S ), 298 302 "=b" ( discard_b ) … … 302 306 "b" ( virt_to_phys ( basemem_packet ) ), 303 307 "a" ( virt_to_phys ( &loaderinfo ) ) 304 : "ecx", "edx", " ebp", "memory" );308 : "ecx", "edx", "memory" ); 305 309 306 310 return rc; -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pxe/pxe_call.c
r47928 r52228 265 265 266 266 /* Far call to PXE NBP */ 267 __asm__ __volatile__ ( REAL_CODE ( "movw %%cx, %%es\n\t" 267 __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 268 "movw %%cx, %%es\n\t" 268 269 "pushw %%es\n\t" 269 270 "pushw %%di\n\t" 270 271 "sti\n\t" 271 272 "lcall $0, $0x7c00\n\t" 272 "addw $4, %%sp\n\t" ) 273 "popl %%ebp\n\t" /* discard */ 274 "popl %%ebp\n\t" /* gcc bug */ ) 273 275 : "=a" ( rc ), "=b" ( discard_b ), 274 276 "=c" ( discard_c ), "=d" ( discard_d ), … … 278 280 "d" ( virt_to_phys ( &pxenv ) ), 279 281 "D" ( __from_text16 ( &ppxe ) ) 280 : "esi", " ebp", "memory" );282 : "esi", "memory" ); 281 283 282 284 return rc; -
trunk/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pxeparent/pxeparent.c
r47928 r52228 137 137 * work with both the !PXE and the PXENV+ entry points. 138 138 */ 139 __asm__ __volatile__ ( REAL_CODE ( "pushw %%es\n\t" 139 __asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */ 140 "pushw %%es\n\t" 140 141 "pushw %%di\n\t" 141 142 "pushw %%bx\n\t" 142 143 "lcall *pxeparent_entry_point\n\t" 143 "addw $6, %%sp\n\t" ) 144 "addw $6, %%sp\n\t" 145 "popl %%ebp\n\t" /* gcc bug */ ) 144 146 : "=a" ( exit ), "=b" ( discard_b ), 145 147 "=D" ( discard_D ) 146 148 : "b" ( function ), 147 149 "D" ( __from_data16 ( &pxeparent_params ) ) 148 : "ecx", "edx", "esi" , "ebp");150 : "ecx", "edx", "esi" ); 149 151 150 152 /* Determine return status code based on PXENV_EXIT and
Note:
See TracChangeset
for help on using the changeset viewer.