Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72242 Details for
Bug 111634
grub-0.97.ebuild (update)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add >2GB support to grub 0.97
065_all_grub-0.97-2gb.patch (text/plain), 1.92 KB, created by
Jon Bernard
on 2005-11-05 14:01:26 UTC
(
hide
)
Description:
patch to add >2GB support to grub 0.97
Filename:
MIME Type:
Creator:
Jon Bernard
Created:
2005-11-05 14:01:26 UTC
Size:
1.92 KB
patch
obsolete
>diff -Nurd grub-0.97/work/grub-0.97/stage2/char_io.c grub-0.97-r1/work/grub-0.97/stage2/char_io.c >--- grub-0.97/work/grub-0.97/stage2/char_io.c 2005-11-05 08:26:36.000000000 -0500 >+++ grub-0.97-r1/work/grub-0.97/stage2/char_io.c 2005-11-05 08:41:51.000000000 -0500 >@@ -1214,7 +1214,7 @@ > # endif > #endif > int >-memcheck (int addr, int len) >+memcheck (unsigned long addr, unsigned long len) > { > #ifdef GRUB_UTIL > # ifdef __PIC__ >@@ -1226,10 +1226,10 @@ > return ! errnum; > # endif > # else /* __PIC__ */ >- auto int start_addr (void); >- auto int end_addr (void); >+ auto unsigned long start_addr (void); >+ auto unsigned long end_addr (void); > >- auto int start_addr (void) >+ auto unsigned long start_addr (void) > { > int ret; > # if defined(HAVE_START_SYMBOL) >@@ -1242,7 +1242,7 @@ > return ret; > } > >- auto int end_addr (void) >+ auto unsigned long end_addr (void) > { > int ret; > # if defined(HAVE_END_SYMBOL) >@@ -1283,7 +1283,7 @@ > void * > grub_memmove (void *to, const void *from, int len) > { >- if (memcheck ((int) to, len)) >+ if (memcheck ((unsigned long) to, len)) > { > /* This assembly code is stolen from > linux-2.2.2/include/asm-i386/string.h. This is not very fast >@@ -1321,7 +1321,7 @@ > { > char *p = start; > >- if (memcheck ((int) start, len)) >+ if (memcheck ((unsigned long) start, len)) > { > while (len -- > 0) > *p ++ = c; >diff -Nurd grub-0.97/work/grub-0.97/stage2/shared.h grub-0.97-r1/work/grub-0.97/stage2/shared.h >--- grub-0.97/work/grub-0.97/stage2/shared.h 2005-11-05 08:26:36.000000000 -0500 >+++ grub-0.97-r1/work/grub-0.97/stage2/shared.h 2005-11-05 08:42:22.000000000 -0500 >@@ -912,7 +912,7 @@ > int nul_terminate (char *str); > int get_based_digit (int c, int base); > int safe_parse_maxint (char **str_ptr, int *myint_ptr); >-int memcheck (int start, int len); >+int memcheck (unsigned long start, unsigned long len); > void grub_putstr (const char *str); > > #ifndef NO_DECOMPRESSION
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 111634
:
72241
| 72242