Skip to content

Commit

Permalink
[PATCH] ppc64: Fix return value of some vDSO calls
Browse files Browse the repository at this point in the history
The ppc vDSO would not properly clear the return value for some calls,
which will be a problem when interfacing those calls with glibc. This
should be fixed before 2.6.12 is released (as it is the first kernel
with the ppc vDSO) so that we don't have to play with symbol versioning
and ugly workarounds.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Apr 28, 2005
1 parent 5fc3e62 commit bdceb6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/ppc64/kernel/vdso32/cacheflush.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache)
addi r6,r6,128
bdnz 1b
isync
li r3,0
blr
.cfi_endproc
V_FUNCTION_END(__kernel_sync_dicache)
Expand All @@ -59,6 +60,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache_p5)
.cfi_startproc
sync
isync
li r3,0
blr
.cfi_endproc
V_FUNCTION_END(__kernel_sync_dicache_p5)
Expand Down
1 change: 1 addition & 0 deletions arch/ppc64/kernel/vdso32/gettimeofday.S
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ V_FUNCTION_BEGIN(__kernel_gettimeofday)
stw r5,TZONE_TZ_DSTTIME(r11)

1: mtlr r12
li r3,0
blr

2: mr r3,r10
Expand Down
2 changes: 2 additions & 0 deletions arch/ppc64/kernel/vdso64/cacheflush.S
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache)
addi r6,r6,128
bdnz 1b
isync
li r3,0
blr
.cfi_endproc
V_FUNCTION_END(__kernel_sync_dicache)
Expand All @@ -59,6 +60,7 @@ V_FUNCTION_BEGIN(__kernel_sync_dicache_p5)
.cfi_startproc
sync
isync
li r3,0
blr
.cfi_endproc
V_FUNCTION_END(__kernel_sync_dicache_p5)

0 comments on commit bdceb6a

Please sign in to comment.