From: David Mosberger <davidm@hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] [PATCH] fix for ia32 lseek()
Date: Sat, 02 Jun 2001 03:11:11 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005685@msgid-missing> (raw)
The attached patch fixes the IA-32 version of lseek() so it works for
negative values of "offset". Without this fix, profile-based feedback
doesn't work in the Intel compiler.
--david
diff -urN ../lia64/arch/ia64/ia32/ia32_entry.S arch/ia64/ia32/ia32_entry.S
--- ../lia64/arch/ia64/ia32/ia32_entry.S Mon Apr 30 17:24:30 2001
+++ arch/ia64/ia32/ia32_entry.S Fri Jun 1 16:06:13 2001
@@ -140,7 +140,7 @@
data8 sys_lchown
data8 sys32_ni_syscall /* old break syscall holder */
data8 sys32_ni_syscall
- data8 sys_lseek
+ data8 sys32_lseek
data8 sys_getpid /* 20 */
data8 sys_mount
data8 sys_oldumount
diff -urN ../lia64/arch/ia64/ia32/sys_ia32.c arch/ia64/ia32/sys_ia32.c
--- ../lia64/arch/ia64/ia32/sys_ia32.c Wed May 2 14:56:02 2001
+++ arch/ia64/ia32/sys_ia32.c Fri Jun 1 16:09:54 2001
@@ -2784,6 +2784,13 @@
return ret;
}
+int
+sys32_lseek (int fd, int offset, int whence)
+{
+ /* Sign-extension of "offset" is important here... */
+ return sys_lseek(fd, offset, whence);
+}
+
#ifdef NOTYET /* UNTESTED FOR IA64 FROM HERE DOWN */
/* In order to reduce some races, while at the same time doing additional
reply other threads:[~2001-06-02 3:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590693005685@msgid-missing \
--to=davidm@hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox