Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 53322 Details for
Bug 85016
grub 0.96 gcc 4 patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
grub-0.96-gcc4.patch
grub-0.96-gcc4.patch (text/plain), 6.71 KB, created by
Harald van Dijk (RETIRED)
on 2005-03-13 05:25:12 UTC
(
hide
)
Description:
grub-0.96-gcc4.patch
Filename:
MIME Type:
Creator:
Harald van Dijk (RETIRED)
Created:
2005-03-13 05:25:12 UTC
Size:
6.71 KB
patch
obsolete
>diff --exclude=.deps -ur grub-0.96-orig/grub/asmstub.c grub-0.96/grub/asmstub.c >--- grub-0.96-orig/grub/asmstub.c 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/grub/asmstub.c 2005-03-12 18:23:40.000000000 -0500 >@@ -90,7 +90,7 @@ > static jmp_buf env_for_exit; > > /* The current color for console. */ >-static int console_current_color = A_NORMAL; >+int console_current_color = A_NORMAL; > > /* The file descriptor for a serial device. */ > static int serial_fd = -1; >@@ -113,31 +113,33 @@ > char *scratch, *simstack; > int i; > >+ auto void doit (void); >+ > /* We need a nested function so that we get a clean stack frame, > regardless of how the code is optimized. */ >- static volatile void doit () >- { >- /* Make sure our stack lives in the simulated memory area. */ >- asm volatile ("movl %%esp, %0\n\tmovl %1, %%esp\n" >- : "=&r" (realstack) : "r" (simstack)); >- >- /* Do a setjmp here for the stop command. */ >- if (! setjmp (env_for_exit)) >- { >- /* Actually enter the generic stage2 code. */ >- status = 0; >- init_bios_info (); >- } >- else >- { >- /* If ERRNUM is non-zero, then set STATUS to non-zero. */ >- if (errnum) >- status = 1; >- } >- >- /* Replace our stack before we use any local variables. */ >- asm volatile ("movl %0, %%esp\n" : : "r" (realstack)); >- } >+ auto void doit (void) >+ { >+ /* Make sure our stack lives in the simulated memory area. */ >+ asm volatile ("movl %%esp, %0\n\tmovl %1, %%esp\n" >+ : "=&r" (realstack) : "r" (simstack)); >+ >+ /* Do a setjmp here for the stop command. */ >+ if (! setjmp (env_for_exit)) >+ { >+ /* Actually enter the generic stage2 code. */ >+ status = 0; >+ init_bios_info (); >+ } >+ else >+ { >+ /* If ERRNUM is non-zero, then set STATUS to non-zero. */ >+ if (errnum) >+ status = 1; >+ } >+ >+ /* Replace our stack before we use any local variables. */ >+ asm volatile ("movl %0, %%esp\n" : : "r" (realstack)); >+ } > > assert (grub_scratch_mem == 0); > scratch = malloc (0x100000 + EXTENDED_MEMSIZE + 15); >diff --exclude=.deps -ur grub-0.96-orig/lib/device.c grub-0.96/lib/device.c >--- grub-0.96-orig/lib/device.c 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/lib/device.c 2005-03-12 18:21:48.000000000 -0500 >@@ -493,12 +493,15 @@ > static int > read_device_map (FILE *fp, char **map, const char *map_file) > { >- static void show_error (int no, const char *msg) >+ auto void show_error (int no, const char *msg); >+ auto void show_warning (int no, const char *msg, ...); >+ >+ auto void show_error (int no, const char *msg) > { > fprintf (stderr, "%s:%d: error: %s\n", map_file, no, msg); > } > >- static void show_warning (int no, const char *msg, ...) >+ auto void show_warning (int no, const char *msg, ...) > { > va_list ap; > >diff --exclude=.deps -ur grub-0.96-orig/stage2/builtins.c grub-0.96/stage2/builtins.c >--- grub-0.96-orig/stage2/builtins.c 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/stage2/builtins.c 2005-03-12 18:17:34.000000000 -0500 >@@ -141,9 +141,11 @@ > int num_entries = 0; > int last_length = 0; > >+ auto void disk_read_blocklist_func (int sector, int offset, int length); >+ > /* Collect contiguous blocks into one entry as many as possible, > and print the blocklist notation on the screen. */ >- static void disk_read_blocklist_func (int sector, int offset, int length) >+ auto void disk_read_blocklist_func (int sector, int offset, int length) > { > if (num_sectors > 0) > { >@@ -589,8 +591,10 @@ > "white" > }; > >+ auto int color_number (char *str); >+ > /* Convert the color name STR into the magical number. */ >- static int color_number (char *str) >+ auto int color_number (char *str) > { > char *ptr; > int i; >@@ -1906,8 +1910,11 @@ > char *stage2_os_file = 0; > #endif /* GRUB_UTIL */ > >+ auto void disk_read_savesect_func (int sector, int offset, int length); >+ auto void disk_read_blocklist_func (int sector, int offset, int length); >+ > /* Save the first sector of Stage2 in STAGE2_SECT. */ >- static void disk_read_savesect_func (int sector, int offset, int length) >+ auto void disk_read_savesect_func (int sector, int offset, int length) > { > if (debug) > printf ("[%d]", sector); >@@ -1923,7 +1930,7 @@ > > /* Write SECTOR to INSTALLLIST, and update INSTALLADDR and > INSTALLSECT. */ >- static void disk_read_blocklist_func (int sector, int offset, int length) >+ auto void disk_read_blocklist_func (int sector, int offset, int length) > { > if (debug) > printf("[%d]", sector); >@@ -3742,7 +3749,10 @@ > int to_code, from_code; > int map_in_interrupt = 0; > >- static int find_key_code (char *key) >+ auto int find_key_code (char *key); >+ auto int find_ascii_code (char *key); >+ >+ auto int find_key_code (char *key) > { > int i; > >@@ -3759,7 +3769,7 @@ > return 0; > } > >- static int find_ascii_code (char *key) >+ auto int find_ascii_code (char *key) > { > int i; > >diff --exclude=.deps -ur grub-0.96-orig/stage2/char_io.c grub-0.96/stage2/char_io.c >--- grub-0.96-orig/stage2/char_io.c 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/stage2/char_io.c 2005-03-12 18:20:23.000000000 -0500 >@@ -1206,7 +1206,10 @@ > memcheck (int addr, int len) > { > #ifdef GRUB_UTIL >- static int start_addr (void) >+ auto int start_addr (void); >+ auto int end_addr (void); >+ >+ auto int start_addr (void) > { > int ret; > # if defined(HAVE_START_SYMBOL) >@@ -1217,7 +1220,7 @@ > return ret; > } > >- static int end_addr (void) >+ auto int end_addr (void) > { > int ret; > # if defined(HAVE_END_SYMBOL) >diff --exclude=.deps -ur grub-0.96-orig/stage2/smp-imps.h grub-0.96/stage2/smp-imps.h >--- grub-0.96-orig/stage2/smp-imps.h 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/stage2/smp-imps.h 2005-03-12 18:19:12.000000000 -0500 >@@ -183,36 +183,6 @@ > */ > > /* >- * "imps_any_new_apics" is non-zero if any of the APICS (local or I/O) >- * are *not* an 82489DX. This is useful to determine if more than 15 >- * CPUs can be supported (true if zero). >- */ >-extern int imps_any_new_apics; >- >-/* >- * "imps_enabled" is non-zero if the probe sequence found IMPS >- * information and was successful. >- */ >-extern int imps_enabled; >- >-/* >- * This contains the local APIC hardware address. >- */ >-extern unsigned imps_lapic_addr; >- >-/* >- * This represents the number of CPUs found. >- */ >-extern int imps_num_cpus; >- >-/* >- * These map from virtual cpu numbers to APIC id's and back. >- */ >-extern unsigned char imps_cpu_apic_map[IMPS_MAX_CPUS]; >-extern unsigned char imps_apic_cpu_map[IMPS_MAX_CPUS]; >- >- >-/* > * This is the primary function for probing for Intel MPS 1.1/1.4 > * compatible hardware and BIOS information. While probing the CPUs > * information returned from the BIOS, this also starts up each CPU
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 85016
:
53279
|
53294
| 53322