From: John Byrne <john.l.byrne@hp.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] Fix prologue directives for sys_clone() and sys_clone2()]
Date: Sat, 16 Aug 2003 00:07:41 +0000 [thread overview]
Message-ID: <marc-linux-ia64-106099247521466@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
To my limited understanding, the GRSAVE portions of the .prologue
directives for sys_clone() and sys_clone2() are incorrect. This patch,
against 2.6.0-test3, fixes them.
I also wonder whether the the continued usage of the 2 argument form of
clone() in kernel_thread() should be considered "bad form". Admittedly,
the other arguments are don't-care as long as the various CLONE_ flags
(which kernel_thread() does not mask off) are not set , but it just
feels wrong. I guess I wouldn't be a programmer if I didn't like to pick
nits.
John Byrne
[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 1094 bytes --]
diff -Nar -u4 -x '*~' linux-2.6.0-test3/arch/ia64/kernel/entry.S new/arch/ia64/kernel/entry.S
--- linux-2.6.0-test3/arch/ia64/kernel/entry.S 2003-08-08 21:34:02.000000000 -0700
+++ new/arch/ia64/kernel/entry.S 2003-08-15 16:39:29.000000000 -0700
@@ -112,9 +112,9 @@
* sys_clone2(u64 flags, u64 ustack_base, u64 ustack_size, u64 parent_tidptr, u64 child_tidptr,
* u64 tls)
*/
GLOBAL_ENTRY(sys_clone2)
- .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(2)
+ .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(6)
alloc r16=ar.pfs,6,2,6,0
DO_SAVE_SWITCH_STACK
adds r2=PT(R16)+IA64_SWITCH_STACK_SIZE+16,sp
mov loc0=rp
@@ -141,9 +141,9 @@
* sys_clone(u64 flags, u64 ustack_base, u64 parent_tidptr, u64 child_tidptr, u64 tls)
* Deprecated. Use sys_clone2() instead.
*/
GLOBAL_ENTRY(sys_clone)
- .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(2)
+ .prologue ASM_UNW_PRLG_RP|ASM_UNW_PRLG_PFS, ASM_UNW_PRLG_GRSAVE(5)
alloc r16=ar.pfs,5,2,6,0
DO_SAVE_SWITCH_STACK
adds r2=PT(R16)+IA64_SWITCH_STACK_SIZE+16,sp
mov loc0=rp
next reply other threads:[~2003-08-16 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-16 0:07 John Byrne [this message]
2003-08-16 0:43 ` [PATCH] Fix prologue directives for sys_clone() and sys_clone2()] David Mosberger
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-106099247521466@msgid-missing \
--to=john.l.byrne@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