search for: fix_vsyscall

Displaying 8 results from an estimated 8 matches for "fix_vsyscall".

2007 Apr 18
1
[PATCH] Gerd Hoffman's move-vsyscall-into-user-address-range patch
....h> +#include <asm/elf.h> #define DEFINE(sym, val) \ asm volatile("\n->" #sym " %0 " #val : : "i" (val)) @@ -68,5 +69,5 @@ void foo(void) sizeof(struct tss_struct)); DEFINE(PAGE_SIZE_asm, PAGE_SIZE); - DEFINE(VSYSCALL_BASE, __fix_to_virt(FIX_VSYSCALL)); + DEFINE(VSYSCALL_BASE, VSYSCALL_BASE); } diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.6.17-rc4/arch/i386/kernel/sysenter.c working-2.6.17-rc4-vsyscall-above-stack/arch/i386/kernel/sysenter.c --- linux-2.6.17-rc4/arch/i386/kernel/sysent...
2007 Apr 18
1
[PATCH] Gerd Hoffman's move-vsyscall-into-user-address-range patch
....h> +#include <asm/elf.h> #define DEFINE(sym, val) \ asm volatile("\n->" #sym " %0 " #val : : "i" (val)) @@ -68,5 +69,5 @@ void foo(void) sizeof(struct tss_struct)); DEFINE(PAGE_SIZE_asm, PAGE_SIZE); - DEFINE(VSYSCALL_BASE, __fix_to_virt(FIX_VSYSCALL)); + DEFINE(VSYSCALL_BASE, VSYSCALL_BASE); } diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.6.17-rc4/arch/i386/kernel/sysenter.c working-2.6.17-rc4-vsyscall-above-stack/arch/i386/kernel/sysenter.c --- linux-2.6.17-rc4/arch/i386/kernel/sysent...
2007 Apr 18
1
[PATCH, experimental] i386 Allow the fixmap to be relocated at boot time
...+) { + phdr[i].p_vaddr +=3D VSYSCALL_RELOCATION; + phdr[i].p_paddr +=3D VSYSCALL_RELOCATION; + } + SYSENTER_RETURN_ADDR =3D (char *)&SYSENTER_RETURN + VSYSCALL_RELOCATION; +} +#endif + int __init sysenter_setup(void) { void *page =3D (void *)get_zeroed_page(GFP_ATOMIC); = - __set_fixmap(FIX_VSYSCALL, __pa(page), PAGE_READONLY_EXEC); - - if (!boot_cpu_has(X86_FEATURE_SEP)) { + if (!boot_cpu_has(X86_FEATURE_SEP)) memcpy(page, &vsyscall_int80_start, &vsyscall_int80_end - &vsyscall_int80_start); - return 0; - } + else + memcpy(page, + &vsyscall_sysenter_s...
2007 Apr 18
1
[PATCH, experimental] i386 Allow the fixmap to be relocated at boot time
...+) { + phdr[i].p_vaddr +=3D VSYSCALL_RELOCATION; + phdr[i].p_paddr +=3D VSYSCALL_RELOCATION; + } + SYSENTER_RETURN_ADDR =3D (char *)&SYSENTER_RETURN + VSYSCALL_RELOCATION; +} +#endif + int __init sysenter_setup(void) { void *page =3D (void *)get_zeroed_page(GFP_ATOMIC); = - __set_fixmap(FIX_VSYSCALL, __pa(page), PAGE_READONLY_EXEC); - - if (!boot_cpu_has(X86_FEATURE_SEP)) { + if (!boot_cpu_has(X86_FEATURE_SEP)) memcpy(page, &vsyscall_int80_start, &vsyscall_int80_end - &vsyscall_int80_start); - return 0; - } + else + memcpy(page, + &vsyscall_sysenter_s...
2007 Apr 18
2
[PATCH] exec-shield style vdso move.
...ck, thread_info, restart_block); + OFFSET(TI_sysenter_return, thread_info, sysenter_return); BLANK(); OFFSET(EXEC_DOMAIN_handler, exec_domain, handler); @@ -68,5 +69,4 @@ void foo(void) sizeof(struct tss_struct)); DEFINE(PAGE_SIZE_asm, PAGE_SIZE); - DEFINE(VSYSCALL_BASE, __fix_to_virt(FIX_VSYSCALL)); } diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .23560-linux-2.6.17-rc4-git3/arch/i386/kernel/entry.S .23560-linux-2.6.17-rc4-git3.updated/arch/i386/kernel/entry.S --- .23560-linux-2.6.17-rc4-git3/arch/i386/kernel/entry.S 2006-05-16 10:50:48.000...
2007 Apr 18
2
[PATCH] exec-shield style vdso move.
...ck, thread_info, restart_block); + OFFSET(TI_sysenter_return, thread_info, sysenter_return); BLANK(); OFFSET(EXEC_DOMAIN_handler, exec_domain, handler); @@ -68,5 +69,4 @@ void foo(void) sizeof(struct tss_struct)); DEFINE(PAGE_SIZE_asm, PAGE_SIZE); - DEFINE(VSYSCALL_BASE, __fix_to_virt(FIX_VSYSCALL)); } diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .23560-linux-2.6.17-rc4-git3/arch/i386/kernel/entry.S .23560-linux-2.6.17-rc4-git3.updated/arch/i386/kernel/entry.S --- .23560-linux-2.6.17-rc4-git3/arch/i386/kernel/entry.S 2006-05-16 10:50:48.000...
2005 Dec 03
3
i386 domU on amd64 (xen-unstable)
...kernel/asm-offsets.c:42: error: ''struct cpuinfo_x86'' has no member named ''hard_math'' arch/i386/kernel/asm-offsets.c:67: error: ''struct tss_struct'' has no member named ''esp0'' arch/i386/kernel/asm-offsets.c:71: error: ''FIX_VSYSCALL'' undeclared (first use in this function) arch/i386/kernel/asm-offsets.c:71: error: (Each undeclared identifier is reported only once arch/i386/kernel/asm-offsets.c:71: error: for each function it appears in.) make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make: *** [arch/i386/kern...
2005 Dec 03
3
i386 domU on amd64 (xen-unstable)
...kernel/asm-offsets.c:42: error: ''struct cpuinfo_x86'' has no member named ''hard_math'' arch/i386/kernel/asm-offsets.c:67: error: ''struct tss_struct'' has no member named ''esp0'' arch/i386/kernel/asm-offsets.c:71: error: ''FIX_VSYSCALL'' undeclared (first use in this function) arch/i386/kernel/asm-offsets.c:71: error: (Each undeclared identifier is reported only once arch/i386/kernel/asm-offsets.c:71: error: for each function it appears in.) make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make: *** [arch/i386/kern...