[PATCH] powerpc: Merge vdso's and add vdso support to 32 bits kernel
This patch moves the vdso's to arch/powerpc, adds support for the 32 bits vdso to the 32 bits kernel, rename systemcfg (finally !), and adds some new (still untested) routines to both vdso's: clock_gettime() with support for CLOCK_REALTIME and CLOCK_MONOTONIC, clock_getres() (same clocks) and get_tbfreq() for glibc to retreive the timebase frequency. Tom,Steve: The implementation of get_tbfreq() I've done for 32 bits returns a long long (r3, r4) not a long. This is such that if we ever add support for >4Ghz timebases on ppc32, the userland interface won't have to change. I have tested gettimeofday() using some glibc patches in both ppc32 and ppc64 kernels using 32 bits userland (I haven't had a chance to test a 64 bits userland yet, but the implementation didn't change and was tested earlier). I haven't tested yet the new functions. Signed-off-by:Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by:
Paul Mackerras <paulus@samba.org>
Showing
- arch/powerpc/kernel/Makefile 3 additions, 1 deletionarch/powerpc/kernel/Makefile
- arch/powerpc/kernel/asm-offsets.c 31 additions, 14 deletionsarch/powerpc/kernel/asm-offsets.c
- arch/powerpc/kernel/paca.c 0 additions, 7 deletionsarch/powerpc/kernel/paca.c
- arch/powerpc/kernel/proc_ppc64.c 2 additions, 2 deletionsarch/powerpc/kernel/proc_ppc64.c
- arch/powerpc/kernel/rtas-proc.c 0 additions, 1 deletionarch/powerpc/kernel/rtas-proc.c
- arch/powerpc/kernel/setup-common.c 2 additions, 2 deletionsarch/powerpc/kernel/setup-common.c
- arch/powerpc/kernel/setup_64.c 10 additions, 52 deletionsarch/powerpc/kernel/setup_64.c
- arch/powerpc/kernel/signal_32.c 3 additions, 9 deletionsarch/powerpc/kernel/signal_32.c
- arch/powerpc/kernel/smp.c 2 additions, 2 deletionsarch/powerpc/kernel/smp.c
- arch/powerpc/kernel/sysfs.c 0 additions, 1 deletionarch/powerpc/kernel/sysfs.c
- arch/powerpc/kernel/time.c 18 additions, 22 deletionsarch/powerpc/kernel/time.c
- arch/powerpc/kernel/traps.c 0 additions, 1 deletionarch/powerpc/kernel/traps.c
- arch/powerpc/kernel/vdso.c 746 additions, 0 deletionsarch/powerpc/kernel/vdso.c
- arch/powerpc/kernel/vdso32/Makefile 4 additions, 0 deletionsarch/powerpc/kernel/vdso32/Makefile
- arch/powerpc/kernel/vdso32/cacheflush.S 0 additions, 0 deletionsarch/powerpc/kernel/vdso32/cacheflush.S
- arch/powerpc/kernel/vdso32/datapage.S 16 additions, 0 deletionsarch/powerpc/kernel/vdso32/datapage.S
- arch/powerpc/kernel/vdso32/gettimeofday.S 315 additions, 0 deletionsarch/powerpc/kernel/vdso32/gettimeofday.S
- arch/powerpc/kernel/vdso32/note.S 0 additions, 0 deletionsarch/powerpc/kernel/vdso32/note.S
- arch/powerpc/kernel/vdso32/sigtramp.S 0 additions, 0 deletionsarch/powerpc/kernel/vdso32/sigtramp.S
- arch/powerpc/kernel/vdso32/vdso32.lds.S 4 additions, 1 deletionarch/powerpc/kernel/vdso32/vdso32.lds.S
Loading
Please register or sign in to comment