Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 186833 Details for
Bug 256764
app-emulation/kqemu-1.3.0_pre11 segfaults then hangs when build with gcc-4 on kernels higher than 2.6.25
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
app-emulation/kqemu/files/kqemu-1.3.0_pre11-kernel_c.patch
kqemu-1.3.0_pre11-kernel_c.patch (text/plain), 1.16 KB, created by
Laird
on 2009-03-31 06:22:00 UTC
(
hide
)
Description:
app-emulation/kqemu/files/kqemu-1.3.0_pre11-kernel_c.patch
Filename:
MIME Type:
Creator:
Laird
Created:
2009-03-31 06:22:00 UTC
Size:
1.16 KB
patch
obsolete
>--- common/kernel.c 2007-02-07 08:02:00.000000000 +1100 >+++ common/kernel.c.new 2009-03-19 16:41:20.000000000 +1100 >@@ -30,7 +30,7 @@ > > #include "common.c" > >-void *memcpy(void *d1, const void *s1, size_t len) >+static void *mymemcpy(void *d1, const void *s1, size_t len) > { > uint8_t *d = d1; > const uint8_t *s = s1; >@@ -41,7 +41,7 @@ > return d1; > } > >-void *memset(void *d1, int val, size_t len) >+static void *mymemset(void *d1, int val, size_t len) > { > uint8_t *d = d1; > >@@ -348,7 +348,7 @@ > g = kqemu_vmalloc(PAGE_ALIGN(sizeof(struct kqemu_global_state))); > if (!g) > return NULL; >- memset(g, 0, sizeof(struct kqemu_global_state)); >+ mymemset(g, 0, sizeof(struct kqemu_global_state)); > spin_lock_init(&g->lock); > g->max_locked_ram_pages = max_locked_pages; > return g; >@@ -391,8 +391,8 @@ > s1 = kqemu_vmalloc(kqemu_state_size); > if (!s1) > return NULL; >- memset(s1, 0, kqemu_state_size); >- memcpy(s1, monitor_code, sizeof(monitor_code)); >+ mymemset(s1, 0, kqemu_state_size); >+ mymemcpy(s1, monitor_code, sizeof(monitor_code)); > s = (void *)(s1 + PAGE_ALIGN(sizeof(monitor_code))); > > #ifndef __x86_64__
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 256764
: 186833 |
186834