Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 53294 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]
GCC4 compile fixes backported from CVS
grub-0.96-gcc4.patch (text/plain), 20.28 KB, created by
Mark Loeser (RETIRED)
on 2005-03-12 15:53:47 UTC
(
hide
)
Description:
GCC4 compile fixes backported from CVS
Filename:
MIME Type:
Creator:
Mark Loeser (RETIRED)
Created:
2005-03-12 15:53:47 UTC
Size:
20.28 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/builtins.c.orig grub-0.96/stage2/builtins.c.orig >--- grub-0.96-orig/stage2/builtins.c.orig 2005-03-12 18:16:47.000000000 -0500 >+++ grub-0.96/stage2/builtins.c.orig 2005-03-12 18:16:17.000000000 -0500 >@@ -59,7 +59,8 @@ > /* The default entry. */ > int default_entry = 0; > /* The fallback entry. */ >-int fallback_entry = -1; >+int fallback_entryno; >+int fallback_entries[MAX_FALLBACK_ENTRIES]; > /* The number of current entry. */ > int current_entryno; > /* The address for Multiboot command-line buffer. */ >@@ -97,7 +98,8 @@ > { > default_entry = 0; > password = 0; >- fallback_entry = -1; >+ fallback_entryno = -1; >+ fallback_entries[0] = -1; > grub_timeout = -1; > } > >@@ -846,6 +848,138 @@ > }; > #endif /* SUPPORT_NETBOOT */ > >+static int terminal_func (char *arg, int flags); >+ >+#ifdef SUPPORT_GRAPHICS >+ >+static int splashimage_func(char *arg, int flags) { >+ char splashimage[64]; >+ int i; >+ >+ /* filename can only be 64 characters due to our buffer size */ >+ if (strlen(arg) > 63) >+ return 1; >+ if (flags == BUILTIN_CMDLINE) { >+ if (!grub_open(arg)) >+ return 1; >+ grub_close(); >+ } >+ >+ strcpy(splashimage, arg); >+ >+ /* get rid of TERM_NEED_INIT from the graphics terminal. */ >+ for (i = 0; term_table[i].name; i++) { >+ if (grub_strcmp (term_table[i].name, "graphics") == 0) { >+ term_table[i].flags &= ~TERM_NEED_INIT; >+ break; >+ } >+ } >+ >+ graphics_set_splash(splashimage); >+ >+ if (flags == BUILTIN_CMDLINE && graphics_inited) { >+ graphics_end(); >+ graphics_init(); >+ graphics_cls(); >+ } >+ >+ /* FIXME: should we be explicitly switching the terminal as a >+ * side effect here? */ >+ terminal_func("graphics", flags); >+ >+ return 0; >+} >+ >+static struct builtin builtin_splashimage = >+{ >+ "splashimage", >+ splashimage_func, >+ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, >+ "splashimage FILE", >+ "Load FILE as the background image when in graphics mode." >+}; >+ >+ >+/* foreground */ >+static int >+foreground_func(char *arg, int flags) >+{ >+ if (grub_strlen(arg) == 6) { >+ int r = ((hex(arg[0]) << 4) | hex(arg[1])) >> 2; >+ int g = ((hex(arg[2]) << 4) | hex(arg[3])) >> 2; >+ int b = ((hex(arg[4]) << 4) | hex(arg[5])) >> 2; >+ >+ foreground = (r << 16) | (g << 8) | b; >+ if (graphics_inited) >+ graphics_set_palette(15, r, g, b); >+ >+ return (0); >+ } >+ >+ return (1); >+} >+ >+static struct builtin builtin_foreground = >+{ >+ "foreground", >+ foreground_func, >+ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, >+ "foreground RRGGBB", >+ "Sets the foreground color when in graphics mode." >+ "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal." >+}; >+ >+ >+/* background */ >+static int >+background_func(char *arg, int flags) >+{ >+ if (grub_strlen(arg) == 6) { >+ int r = ((hex(arg[0]) << 4) | hex(arg[1])) >> 2; >+ int g = ((hex(arg[2]) << 4) | hex(arg[3])) >> 2; >+ int b = ((hex(arg[4]) << 4) | hex(arg[5])) >> 2; >+ >+ background = (r << 16) | (g << 8) | b; >+ if (graphics_inited) >+ graphics_set_palette(0, r, g, b); >+ return (0); >+ } >+ >+ return (1); >+} >+ >+static struct builtin builtin_background = >+{ >+ "background", >+ background_func, >+ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, >+ "background RRGGBB", >+ "Sets the background color when in graphics mode." >+ "RR is red, GG is green, and BB blue. Numbers must be in hexadecimal." >+}; >+ >+#endif /* SUPPORT_GRAPHICS */ >+ >+ >+/* clear */ >+static int >+clear_func() >+{ >+ if (current_term->cls) >+ current_term->cls(); >+ >+ return 0; >+} >+ >+static struct builtin builtin_clear = >+{ >+ "clear", >+ clear_func, >+ BUILTIN_CMDLINE | BUILTIN_HELP_LIST, >+ "clear", >+ "Clear the screen" >+}; >+ > > /* displayapm */ > static int >@@ -1143,9 +1277,35 @@ > static int > fallback_func (char *arg, int flags) > { >- if (! safe_parse_maxint (&arg, &fallback_entry)) >- return 1; >+ int i = 0; >+ >+ while (*arg) >+ { >+ int entry; >+ int j; >+ >+ if (! safe_parse_maxint (&arg, &entry)) >+ return 1; > >+ /* Remove duplications to prevent infinite looping. */ >+ for (j = 0; j < i; j++) >+ if (entry == fallback_entries[j]) >+ break; >+ if (j != i) >+ continue; >+ >+ fallback_entries[i++] = entry; >+ if (i == MAX_FALLBACK_ENTRIES) >+ break; >+ >+ arg = skip_to (0, arg); >+ } >+ >+ if (i < MAX_FALLBACK_ENTRIES) >+ fallback_entries[i] = -1; >+ >+ fallback_entryno = (i == 0) ? -1 : 0; >+ > return 0; > } > >@@ -1155,7 +1315,7 @@ > fallback_func, > BUILTIN_MENU, > #if 0 >- "fallback NUM", >+ "fallback NUM...", > "Go into unattended boot mode: if the default boot entry has any" > " errors, instead of waiting for the user to do anything, it" > " immediately starts over using the NUM entry (same numbering as the" >@@ -1720,7 +1880,7 @@ > /* XXX: Probably SECTOR_SIZE is reasonable. */ > char *config_filename = stage2_second_buffer + SECTOR_SIZE; > char *dummy = config_filename + SECTOR_SIZE; >- int new_drive = 0xFF; >+ int new_drive = GRUB_INVALID_DRIVE; > int dest_drive, dest_partition, dest_sector; > int src_drive, src_partition, src_part_start; > int i; >@@ -2051,7 +2211,7 @@ > /* If the drive where the Stage 2 resides is the same as > the one where the Stage 1.5 resides, do not embed the > drive number. */ >- current_drive = 0xFF; >+ current_drive = GRUB_INVALID_DRIVE; > } > > device = (current_drive << 24) | current_partition; >@@ -3185,8 +3345,29 @@ > savedefault_func (char *arg, int flags) > { > #if !defined(SUPPORT_DISKLESS) && !defined(GRUB_UTIL) >- char buffer[512]; >- int *entryno_ptr; >+ unsigned long tmp_drive = saved_drive; >+ unsigned long tmp_partition = saved_partition; >+ char *default_file = (char *) DEFAULT_FILE_BUF; >+ char buf[10]; >+ char sect[SECTOR_SIZE]; >+ int entryno; >+ int sector_count = 0; >+ int saved_sectors[2]; >+ int saved_offsets[2]; >+ int saved_lengths[2]; >+ >+ /* Save sector information about at most two sectors. */ >+ auto void disk_read_savesect_func (int sector, int offset, int length); >+ void disk_read_savesect_func (int sector, int offset, int length) >+ { >+ if (sector_count < 2) >+ { >+ saved_sectors[sector_count] = sector; >+ saved_offsets[sector_count] = offset; >+ saved_lengths[sector_count] = length; >+ } >+ sector_count++; >+ } > > /* This command is only useful when you boot an entry from the menu > interface. */ >@@ -3195,46 +3376,110 @@ > errnum = ERR_UNRECOGNIZED; > return 1; > } >- >- /* Get the geometry of the boot drive (i.e. the disk which contains >- this stage2). */ >- if (get_diskinfo (boot_drive, &buf_geom)) >- { >- errnum = ERR_NO_DISK; >- return 1; >- } > >- /* Load the second sector of this stage2. */ >- if (! rawread (boot_drive, install_second_sector, 0, SECTOR_SIZE, buffer)) >+ /* Determine a saved entry number. */ >+ if (*arg) > { >- return 1; >- } >+ if (grub_memcmp (arg, "fallback", sizeof ("fallback") - 1) == 0) >+ { >+ int i; >+ int index = 0; >+ >+ for (i = 0; i < MAX_FALLBACK_ENTRIES; i++) >+ { >+ if (fallback_entries[i] < 0) >+ break; >+ if (fallback_entries[i] == current_entryno) >+ { >+ index = i + 1; >+ break; >+ } >+ } >+ >+ if (index >= MAX_FALLBACK_ENTRIES || fallback_entries[index] < 0) >+ { >+ /* This is the last. */ >+ errnum = ERR_BAD_ARGUMENT; >+ return 1; >+ } > >- /* Sanity check. */ >- if (buffer[STAGE2_STAGE2_ID] != STAGE2_ID_STAGE2 >- || *((short *) (buffer + STAGE2_VER_MAJ_OFFS)) != COMPAT_VERSION) >- { >- errnum = ERR_BAD_VERSION; >- return 1; >+ entryno = fallback_entries[index]; >+ } >+ else if (! safe_parse_maxint (&arg, &entryno)) >+ return 1; > } >- >- entryno_ptr = (int *) (buffer + STAGE2_SAVED_ENTRYNO); >+ else >+ entryno = current_entryno; > >- /* Check if the saved entry number differs from current entry number. */ >- if (*entryno_ptr != current_entryno) >- { >- /* Overwrite the saved entry number. */ >- *entryno_ptr = current_entryno; >+ /* Open the default file. */ >+ saved_drive = boot_drive; >+ saved_partition = install_partition; >+ if (grub_open (default_file)) >+ { >+ int len; >+ >+ disk_read_hook = disk_read_savesect_func; >+ len = grub_read (buf, sizeof (buf)); >+ disk_read_hook = 0; >+ grub_close (); > >- /* Save the image in the disk. */ >- if (! rawwrite (boot_drive, install_second_sector, buffer)) >- return 1; >+ if (len != sizeof (buf)) >+ { >+ /* This is too small. Do not modify the file manually, please! */ >+ errnum = ERR_READ; >+ goto fail; >+ } >+ >+ if (sector_count > 2) >+ { >+ /* Is this possible?! Too fragmented! */ >+ errnum = ERR_FSYS_CORRUPT; >+ goto fail; >+ } > >+ /* Set up a string to be written. */ >+ grub_memset (buf, '\n', sizeof (buf)); >+ grub_sprintf (buf, "%d", entryno); >+ >+ if (saved_lengths[0] < sizeof (buf)) >+ { >+ /* The file is anchored to another file and the first few bytes >+ are spanned in two sectors. Uggh... */ >+ if (! rawread (current_drive, saved_sectors[0], 0, SECTOR_SIZE, >+ sect)) >+ goto fail; >+ grub_memmove (sect + saved_offsets[0], buf, saved_lengths[0]); >+ if (! rawwrite (current_drive, saved_sectors[0], sect)) >+ goto fail; >+ >+ if (! rawread (current_drive, saved_sectors[1], 0, SECTOR_SIZE, >+ sect)) >+ goto fail; >+ grub_memmove (sect + saved_offsets[1], >+ buf + saved_lengths[0], >+ sizeof (buf) - saved_lengths[0]); >+ if (! rawwrite (current_drive, saved_sectors[1], sect)) >+ goto fail; >+ } >+ else >+ { >+ /* This is a simple case. It fits into a single sector. */ >+ if (! rawread (current_drive, saved_sectors[0], 0, SECTOR_SIZE, >+ sect)) >+ goto fail; >+ grub_memmove (sect + saved_offsets[0], buf, sizeof (buf)); >+ if (! rawwrite (current_drive, saved_sectors[0], sect)) >+ goto fail; >+ } >+ > /* Clear the cache. */ > buf_track = -1; > } > >- return 0; >+ fail: >+ saved_drive = tmp_drive; >+ saved_partition = tmp_partition; >+ return errnum; > #else /* ! SUPPORT_DISKLESS && ! GRUB_UTIL */ > errnum = ERR_UNRECOGNIZED; > return 1; >@@ -3246,8 +3491,10 @@ > "savedefault", > savedefault_func, > BUILTIN_CMDLINE, >- "savedefault", >- "Save the current entry as the default boot entry." >+ "savedefault [NUM | `fallback']", >+ "Save the current entry as the default boot entry if no argument is" >+ " specified. If a number is specified, this number is saved. If" >+ " `fallback' is used, next fallback entry is saved." > }; > > >@@ -3747,7 +3994,9 @@ > { > {"ext2fs", "/e2fs_stage1_5"}, > {"fat", "/fat_stage1_5"}, >+ {"ufs2", "/ufs2_stage1_5"}, > {"ffs", "/ffs_stage1_5"}, >+ {"iso9660", "/iso9660_stage1_5"}, > {"jfs", "/jfs_stage1_5"}, > {"minix", "/minix_stage1_5"}, > {"reiserfs", "/reiserfs_stage1_5"}, >@@ -3956,7 +4205,7 @@ > }; > > >-#if defined(SUPPORT_SERIAL) || defined(SUPPORT_HERCULES) >+#if defined(SUPPORT_SERIAL) || defined(SUPPORT_HERCULES) || defined(SUPPORT_GRAPHICS) > /* terminal */ > static int > terminal_func (char *arg, int flags) >@@ -4115,17 +4364,21 @@ > end: > current_term = term_table + default_term; > current_term->flags = term_flags; >- >+ > if (lines) > max_lines = lines; > else >- /* 24 would be a good default value. */ >- max_lines = 24; >- >+ max_lines = current_term->max_lines; >+ > /* If the interface is currently the command-line, > restart it to repaint the screen. */ >- if (current_term != prev_term && (flags & BUILTIN_CMDLINE)) >+ if ((current_term != prev_term) && (flags & BUILTIN_CMDLINE)){ >+ if (prev_term->shutdown) >+ prev_term->shutdown(); >+ if (current_term->startup) >+ current_term->startup(); > grub_longjmp (restart_cmdline_env, 0); >+ } > > return 0; > } >@@ -4135,7 +4388,7 @@ > "terminal", > terminal_func, > BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, >- "terminal [--dumb] [--no-echo] [--no-edit] [--timeout=SECS] [--lines=LINES] [--silent] [console] [serial] [hercules]", >+ "terminal [--dumb] [--no-echo] [--no-edit] [--timeout=SECS] [--lines=LINES] [--silent] [console] [serial] [hercules] [graphics]", > "Select a terminal. When multiple terminals are specified, wait until" > " you push any key to continue. If both console and serial are specified," > " the terminal to which you input a key first will be selected. If no" >@@ -4147,7 +4400,7 @@ > " seconds. The option --lines specifies the maximum number of lines." > " The option --silent is used to suppress messages." > }; >-#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES */ >+#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES || SUPPORT_GRAPHICS */ > > > #ifdef SUPPORT_SERIAL >@@ -4666,6 +4919,9 @@ > /* The table of builtin commands. Sorted in dictionary order. */ > struct builtin *builtin_table[] = > { >+#ifdef SUPPORT_GRAPHICS >+ &builtin_background, >+#endif > &builtin_blocklist, > &builtin_boot, > #ifdef SUPPORT_NETBOOT >@@ -4673,6 +4929,7 @@ > #endif /* SUPPORT_NETBOOT */ > &builtin_cat, > &builtin_chainloader, >+ &builtin_clear, > &builtin_cmp, > &builtin_color, > &builtin_configfile, >@@ -4692,6 +4949,9 @@ > &builtin_embed, > &builtin_fallback, > &builtin_find, >+#ifdef SUPPORT_GRAPHICS >+ &builtin_foreground, >+#endif > &builtin_fstest, > &builtin_geometry, > &builtin_halt, >@@ -4735,9 +4995,12 @@ > #endif /* SUPPORT_SERIAL */ > &builtin_setkey, > &builtin_setup, >-#if defined(SUPPORT_SERIAL) || defined(SUPPORT_HERCULES) >+#ifdef SUPPORT_GRAPHICS >+ &builtin_splashimage, >+#endif /* SUPPORT_GRAPHICS */ >+#if defined(SUPPORT_SERIAL) || defined(SUPPORT_HERCULES) || defined(SUPPORT_GRAPHICS) > &builtin_terminal, >-#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES */ >+#endif /* SUPPORT_SERIAL || SUPPORT_HERCULES || SUPPORT_GRAPHICS */ > #ifdef SUPPORT_SERIAL > &builtin_terminfo, > #endif /* SUPPORT_SERIAL */ >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