Просмотр исходного кода

Fix up building with gcc 4.0.1 / gas 2.16.91

tags/v0.9.3
Michael Brown 18 лет назад
Родитель
Сommit
5d28bae0f1
3 измененных файлов: 4 добавлений и 5 удалений
  1. 1
    1
      src/arch/i386/Config
  2. 3
    3
      src/arch/i386/prefix/romprefix.S
  3. 0
    1
      src/include/etherboot.h

+ 1
- 1
src/arch/i386/Config Просмотреть файл

@@ -133,7 +133,7 @@ CFLAGS+=	-falign-jumps=1 -falign-loops=1 -falign-functions=1
133 133
 endif
134 134
 GCC_MINORVERSION = $(word 2, $(GCC_VERSION))
135 135
 ifneq ($(GCC_MINORVERSION),4)
136
-CFLAGS+=	-mcpu=i386
136
+CFLAGS+=	-march=i386
137 137
 endif
138 138
 
139 139
 LDFLAGS+=	-N

+ 3
- 3
src/arch/i386/prefix/romprefix.S Просмотреть файл

@@ -110,9 +110,9 @@ UNDIROMID:
110 110
 	.byte	0			/* Structure revision */
111 111
 	.byte	0,1,2			/* PXE version 2.1.0 */
112 112
 	.word	UNDILoader - _prefix	/* Offset to loader routine */
113
-	.word	UNDIStackSize		/* Stack segment size */
114
-	.word	UNDIDataSize		/* Data segment size */
115
-	.word	UNDICodeSize		/* Code segment size */
113
+	.word	_real_mode_stack_size	/* Stack segment size */
114
+	.word	_real_mode_stack_size	/* Data segment size */
115
+	.word	_pxe_stack_size		/* Code segment size */
116 116
 	.ascii	"PCIR"
117 117
 
118 118
 	/* The code segment contains our pxe_stack_t plus the PXE and

+ 0
- 1
src/include/etherboot.h Просмотреть файл

@@ -285,7 +285,6 @@ extern int hostnamelen;
285 285
 extern jmp_buf restart_etherboot;
286 286
 extern int url_port;
287 287
 extern struct arptable_t arptable[MAX_ARP];
288
-extern struct igmptable_t igmptable[MAX_IGMP];
289 288
 #ifdef	IMAGE_MENU
290 289
 extern int menutmo,menudefault;
291 290
 extern unsigned char *defparams;

Загрузка…
Отмена
Сохранить