~serge-hallyn/ubuntu/oneiric/ipxe/link-kvm

« back to all changes in this revision

Viewing changes to debian/patches/remove-linuxprefix-resolve-ftbfs.patch

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2011-07-31 20:57:02 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110731205702-kffmzz6tnmgfw50f
Tags: 1.0.0+git-2.149b50-1
New snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: ipxe/src/arch/i386/prefix/linuxprefix.S
2
 
===================================================================
3
 
--- ipxe.orig/src/arch/i386/prefix/linuxprefix.S        2011-08-05 16:56:49.028882032 -0600
4
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
5
 
@@ -1,28 +0,0 @@
6
 
-#include <linux/unistd.h>
7
 
-
8
 
-       .section ".text"
9
 
-       .code32
10
 
-       .globl _linux_start
11
 
-       .type _linux_start, @function
12
 
-
13
 
-_linux_start:
14
 
-       xorl    %ebp, %ebp
15
 
-
16
 
-       popl    %esi       // save argc
17
 
-       movl    %esp, %edi // save argv
18
 
-
19
 
-       andl    $~15, %esp // 16-byte align the stack
20
 
-
21
 
-       pushl   %edi // argv -> C arg2
22
 
-       pushl   %esi // argc -> C arg1
23
 
-
24
 
-       call    save_args
25
 
-
26
 
-       /* Our main doesn't use any arguments */
27
 
-       call    main
28
 
-
29
 
-       movl    %eax, %ebx // rc -> syscall arg1
30
 
-       movl    $__NR_exit, %eax
31
 
-       int     $0x80
32
 
-
33
 
-       .size _linux_start, . - _linux_start
34
 
Index: ipxe/src/arch/x86_64/prefix/linuxprefix.S
35
 
===================================================================
36
 
--- ipxe.orig/src/arch/x86_64/prefix/linuxprefix.S      2011-08-05 16:56:49.058882032 -0600
37
 
+++ /dev/null   1970-01-01 00:00:00.000000000 +0000
38
 
@@ -1,25 +0,0 @@
39
 
-#include <linux/unistd.h>
40
 
-
41
 
-       .section ".text"
42
 
-       .code64
43
 
-       .globl _linux_start
44
 
-       .type _linux_start, @function
45
 
-
46
 
-_linux_start:
47
 
-       xorq    %rbp, %rbp
48
 
-
49
 
-       popq    %rdi       // argc -> C arg1
50
 
-       movq    %rsp, %rsi // argv -> C arg2
51
 
-
52
 
-       andq    $~15, %rsp // 16-byte align the stack
53
 
-
54
 
-       call    save_args
55
 
-
56
 
-       /* Our main doesn't use any arguments */
57
 
-       call    main
58
 
-
59
 
-       movq    %rax, %rdi // rc -> syscall arg1
60
 
-       movq    $__NR_exit, %rax
61
 
-       syscall
62
 
-
63
 
-       .size _start, . - _start