Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 256764
Collapse All | Expand All

(-)common/kernel.c (-5 / +5 lines)
Lines 30-36 Link Here
30
30
31
#include "common.c"
31
#include "common.c"
32
32
33
void *memcpy(void *d1, const void *s1, size_t len)
33
static void *mymemcpy(void *d1, const void *s1, size_t len)
34
{
34
{
35
    uint8_t *d = d1;
35
    uint8_t *d = d1;
36
    const uint8_t *s = s1;
36
    const uint8_t *s = s1;
Lines 41-47 Link Here
41
    return d1;
41
    return d1;
42
}
42
}
43
43
44
void *memset(void *d1, int val, size_t len)
44
static void *mymemset(void *d1, int val, size_t len)
45
{
45
{
46
    uint8_t *d = d1;
46
    uint8_t *d = d1;
47
47
Lines 348-354 Link Here
348
    g = kqemu_vmalloc(PAGE_ALIGN(sizeof(struct kqemu_global_state)));
348
    g = kqemu_vmalloc(PAGE_ALIGN(sizeof(struct kqemu_global_state)));
349
    if (!g)
349
    if (!g)
350
        return NULL;
350
        return NULL;
351
    memset(g, 0, sizeof(struct kqemu_global_state));
351
    mymemset(g, 0, sizeof(struct kqemu_global_state));
352
    spin_lock_init(&g->lock);
352
    spin_lock_init(&g->lock);
353
    g->max_locked_ram_pages = max_locked_pages;
353
    g->max_locked_ram_pages = max_locked_pages;
354
    return g;
354
    return g;
Lines 391-398 Link Here
391
    s1 = kqemu_vmalloc(kqemu_state_size);
391
    s1 = kqemu_vmalloc(kqemu_state_size);
392
    if (!s1)
392
    if (!s1)
393
        return NULL;
393
        return NULL;
394
    memset(s1, 0, kqemu_state_size);
394
    mymemset(s1, 0, kqemu_state_size);
395
    memcpy(s1, monitor_code, sizeof(monitor_code));
395
    mymemcpy(s1, monitor_code, sizeof(monitor_code));
396
    s = (void *)(s1 + PAGE_ALIGN(sizeof(monitor_code)));
396
    s = (void *)(s1 + PAGE_ALIGN(sizeof(monitor_code)));
397
    
397
    
398
#ifndef __x86_64__
398
#ifndef __x86_64__

Return to bug 256764