Correct readahead syscall wrapper on powerpc32

View: New views
1 Messages — Rating Filter:   Alert me  

Correct readahead syscall wrapper on powerpc32

by Andreas Schwab-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Due to alignment of 64bit parameters there is a dummy second argument.
But other than that the syscall arguments are directly mapped to the
function arguments.

Andreas.

From 5fc43e11c2b7ea9698649612cb3a79824cc5dbdc Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@...>
Date: Tue, 3 Nov 2009 13:58:41 +0100
Subject: [PATCH] Correct readahead syscall wrapper on powerpc32

---
 ChangeLog                                          |    5 +++++
 .../sysv/linux/powerpc/powerpc32/syscalls.list     |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a9f6357..853a1af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-03  Andreas Schwab  <schwab@...>
+
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
+ readahead.
+
 2009-11-01  Ulrich Drepper  <drepper@...>
 
  * malloc/hooks.c (free_check): Restore locking and call _int_free
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list b/sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
index 82025b4..1233be6 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
@@ -3,3 +3,6 @@
 # System calls with wrappers.
 oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@...
 oldsetrlimit EXTRA setrlimit i:ip __old_setrlimit setrlimit@...
+
+# Due to 64bit alignment there is a dummy second parameter
+readahead - readahead i:iiiii __readahead readahead
--
1.6.5.1


--
Andreas Schwab, schwab@...
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."