search for: new_base

Displaying 5 results from an estimated 5 matches for "new_base".

Did you mean: gem_base
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
...const unsigned long vdso_rel_sysenter_start[], vdso_rel_sysenter_end[]; #endif /* @@ -66,6 +68,142 @@ void enable_sep_cpu(void) #endif } +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) +static void __init relocate_vdso(Elf32_Ehdr *ehdr, unsigned long old_base, unsigned long new_base, + const unsigned long *reloc_start, const unsigned long *reloc_end) +{ +#if 1 + const unsigned long *reloc; + + for (reloc = reloc_start; reloc < reloc_end; ++reloc) { + unsigned long *ptr = (void *)((unsigned long)ehdr + *reloc); + + *ptr += new_base - old_bas...
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
...const unsigned long vdso_rel_sysenter_start[], vdso_rel_sysenter_end[]; #endif /* @@ -66,6 +68,142 @@ void enable_sep_cpu(void) #endif } +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) +static void __init relocate_vdso(Elf32_Ehdr *ehdr, unsigned long old_base, unsigned long new_base, + const unsigned long *reloc_start, const unsigned long *reloc_end) +{ +#if 1 + const unsigned long *reloc; + + for (reloc = reloc_start; reloc < reloc_end; ++reloc) { + unsigned long *ptr = (void *)((unsigned long)ehdr + *reloc); + + *ptr += new_base - old_bas...
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
...const unsigned long vdso_rel_sysenter_start[], vdso_rel_sysenter_end[]; #endif /* @@ -66,6 +68,142 @@ void enable_sep_cpu(void) #endif } +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) +static void __init relocate_vdso(Elf32_Ehdr *ehdr, unsigned long old_base, unsigned long new_base, + const unsigned long *reloc_start, const unsigned long *reloc_end) +{ +#if 1 + const unsigned long *reloc; + + for (reloc = reloc_start; reloc < reloc_end; ++reloc) { + unsigned long *ptr = (void *)((unsigned long)ehdr + *reloc); + + *ptr += new_base - old_bas...
2007 Aug 30
2
comparing pointer to integer?
..._base == MAP_FAILED) { Should be fixed, probably like this: if ((int)cache->mmap_base == MAP_FAILED) { There are a lot of occurences for these in the source. GCC only warns because of this, but DEC C is known to consider this an error: Error: file-cache.c, line 79: In this statement, "new_base" and "(-1)" may not be compared for equality or inequality. if (new_base == MAP_FAILED) { And indeed, unsigned integers and -1 are rarely equal. -- Gabucino
2006 Aug 17
2
dovecot on OSF/1 4.0
...e == MAP_FAILED) ------------^ cc: Warning: mmap-anon.c, line 68: In this statement, "(-1)" of type "long", is being converted to "pointer to void". return MAP_FAILED; -----------------------^ cc: Error: mmap-anon.c, line 85: In this statement, "new_base" and "(-1)" may not be compared for equality or inequality. if (new_base == MAP_FAILED) ------------^ cc: Warning: mmap-anon.c, line 86: In this statement, "(-1)" of type "long", is being converted to "pointer to void". retu...