From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: paulus@samba.org
Cc: linuxppc-commit@source.mvista.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: [PATCH] gcc3 compatibility and debugger support
Date: Tue, 25 Sep 2001 00:09:55 +0200 [thread overview]
Message-ID: <200109242209.RAA30858@lists.linuxppc.org> (raw)
In-Reply-To: <15278.40161.431833.765393@cargo.ozlabs.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 337 bytes --]
On Monday 24 September 2001 04:39, Paul Mackerras wrote:
> Franz Sirl writes:
> > current_set[smp_processor_id()] = new;
> > +#else
> > + current_set[0] = new;
> > #endif /* CONFIG_SMP */
>
> Yuck. Just put the #endif before the line that sets current_set[].
> smp_processor_id() is 0 on UP.
OK, here is the updated patch.
Franz.
[-- Attachment #2: bk-misc1a.diff --]
[-- Type: text/plain, Size: 1058 bytes --]
===== arch/ppc/kernel/process.c 1.29 vs edited =====
--- 1.29/arch/ppc/kernel/process.c Tue Sep 18 03:19:06 2001
+++ edited/arch/ppc/kernel/process.c Mon Sep 24 19:59:28 2001
@@ -226,8 +226,10 @@
if ((prev->thread.regs && (prev->thread.regs->msr & MSR_VEC)))
giveup_altivec(prev);
#endif /* CONFIG_ALTIVEC */
- current_set[smp_processor_id()] = new;
#endif /* CONFIG_SMP */
+
+ current_set[smp_processor_id()] = new;
+
/* Avoid the trap. On smp this this never happens since
* we don't set last_task_used_altivec -- Cort
*/
===== include/asm-ppc/prom.h 1.20 vs edited =====
--- 1.20/include/asm-ppc/prom.h Wed Aug 29 00:49:25 2001
+++ edited/include/asm-ppc/prom.h Thu Sep 6 21:13:57 2001
@@ -106,7 +106,7 @@
#define PTRRELOC(x) ((typeof(x))((unsigned long)(x) + offset))
#define PTRUNRELOC(x) ((typeof(x))((unsigned long)(x) - offset))
-#define RELOC(x) (*PTRRELOC(&(x)))
+#define RELOC(x) (*({ typeof(x) * __ptr = PTRRELOC(&(x)); __asm__ ("" : "=r" (__ptr) : "0" (__ptr)); __ptr;}))
#endif /* _PPC_PROM_H */
#endif /* __KERNEL__ */
prev parent reply other threads:[~2001-09-24 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200109061932.OAA12306@lists.linuxppc.org>
2001-09-07 14:44 ` [PATCH] gcc3 compatibility and debugger support Kaoru Fukui
2001-09-24 2:39 ` Paul Mackerras
2001-09-24 22:09 ` Franz Sirl [this message]
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=200109242209.RAA30858@lists.linuxppc.org \
--to=franz.sirl-kernel@lauterbach.com \
--cc=linuxppc-commit@source.mvista.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=paulus@samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.