Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51491 Details for
Bug 80693
grub-0.96 (version bump)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Modified PIC patch to cater for systems with start/end instead of _start/_end
grub-0.96-PIC2.patch (text/plain), 1.88 KB, created by
Kevin F. Quinn (RETIRED)
on 2005-02-18 00:21:53 UTC
(
hide
)
Description:
Modified PIC patch to cater for systems with start/end instead of _start/_end
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2005-02-18 00:21:53 UTC
Size:
1.88 KB
patch
obsolete
>--- grub-0.96/stage2/char_io.c.orig 2005-02-18 09:12:39.163407496 +0100 >+++ grub-0.96/stage2/char_io.c 2005-02-18 09:13:11.431502000 +0100 >@@ -1202,34 +1202,59 @@ > } > #endif /* ! STAGE1_5 */ > >+#ifdef GRUB_UTIL >+# ifdef __PIC__ >+# if defined(HAVE_START_SYMBOL) && defined(HAVE_END_SYMBOL) >+ extern char start[]; >+ extern char end[]; >+# elif defined(HAVE_USCORE_START_SYMBOL) && defined (HAVE_USCORE_END_SYMBOL) >+ extern char _start[]; >+ extern char _end[]; >+# endif >+# endif >+#endif > int > memcheck (int addr, int len) > { > #ifdef GRUB_UTIL >+# ifdef __PIC__ >+# if defined(HAVE_START_SYMBOL) && defined(HAVE_END_SYMBOL) >+ if (start <= addr && end > addr + len) >+ return ! errnum; >+# elif defined(HAVE_USCORE_START_SYMBOL) && defined (HAVE_USCORE_END_SYMBOL) >+ if (_start <= addr && _end > addr + len) >+ return ! errnum; >+# endif >+# else /* __PIC__ */ > static int start_addr (void) > { > int ret; >-# if defined(HAVE_START_SYMBOL) >+# if defined(HAVE_START_SYMBOL) > asm volatile ("movl $start, %0" : "=a" (ret)); >-# elif defined(HAVE_USCORE_START_SYMBOL) >+# elif defined(HAVE_USCORE_START_SYMBOL) > asm volatile ("movl $_start, %0" : "=a" (ret)); >-# endif >+# else >+ erk! /* function would return undefined data in this case - barf */ >+# endif > return ret; > } > > static int end_addr (void) > { > int ret; >-# if defined(HAVE_END_SYMBOL) >+# if defined(HAVE_END_SYMBOL) > asm volatile ("movl $end, %0" : "=a" (ret)); >-# elif defined(HAVE_USCORE_END_SYMBOL) >+# elif defined(HAVE_USCORE_END_SYMBOL) > asm volatile ("movl $_end, %0" : "=a" (ret)); >-# endif >+# else >+ erk! /* function would return undefined data in this case - barf */ >+# endif > return ret; > } > > if (start_addr () <= addr && end_addr () > addr + len) > return ! errnum; >+# endif /* __PIC__ */ > #endif /* GRUB_UTIL */ > > if ((addr < RAW_ADDR (0x1000))
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 80693
:
50315
|
50316
|
50317
|
50318
|
50319
|
51439
|
51440
|
51441
|
51442
|
51443
|
51444
|
51445
|
51446
| 51491 |
51633
|
51634
|
51660
|
52976
|
53009
|
53147
|
53148
|
53157
|
56647