From: Matt Mackall <mpm@selenic.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: [patch] arch-specific cond_syscall usage issues
Date: Sat, 10 Jan 2004 00:03:15 -0600 [thread overview]
Message-ID: <20040110060315.GZ18208@waste.org> (raw)
In-Reply-To: <20040109212108.3d8f5e54.zaitcev@redhat.com>
On Fri, Jan 09, 2004 at 09:21:08PM -0800, Pete Zaitcev wrote:
> On Fri, 9 Jan 2004 19:37:53 -0800
> Andrew Morton <akpm@osdl.org> wrote:
>
> > > Experimenting with trying to use cond_syscall for a few arch-specific
> > > syscalls, I discovered that it can't actually be used outside the file
> > > in which sys_ni_syscall is declared because the assembler doesn't feel
> > > obliged to output the symbol in that case:
>
> > > One arch (PPC) is apparently trying to use cond_syscall this way
> > > anyway, though it's probably never been actually tested as the above
> > > test was done on a PPC.
> >
> > So why does the PPC kernel successfully link?
>
> Perhaps it never was tested right when the change went in.
On closer inspection, PPC has this:
config PCI
bool "PCI support" if 40x || 8260
default y if !40x && !8260 && !8xx && !APUS
default PCI_PERMEDIA if !4xx && !8260 && !8xx && APUS
default PCI_QSPAN if !4xx && !8260 && 8xx
which suggests that non-PCI PPC are limited to very old and/or
embedded boxes. And indeed compiling it for one of these (...much time
elapses...) gets us:
arch/ppc/kernel/built-in.o(.data+0x380):arch/ppc/kernel/entry.S:
undefined reference to `sys_pciconfig_iobase'
> The patch is easy. The hard road would be to take it to binutils people
> like H.J.Lu and see what they say.
I believe Dave M mentioned that gcc uses weak symbols similarly, so
they've probably decided that the necessary smarts to do what we
originally wanted are too much trouble.
--
Matt Mackall : http://www.selenic.com : Linux development and consulting
next prev parent reply other threads:[~2004-01-10 6:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-10 3:29 [patch] arch-specific cond_syscall usage issues Matt Mackall
2004-01-10 3:37 ` Andrew Morton
2004-01-10 3:53 ` Matt Mackall
2004-01-10 5:21 ` Pete Zaitcev
2004-01-10 6:03 ` Matt Mackall [this message]
2004-01-14 16:13 ` Tom Rini
2004-01-14 19:31 ` Andrew Morton
2004-01-14 19:47 ` Matt Mackall
2004-01-14 19:49 ` Tom Rini
2004-04-23 19:14 ` [PATCH 2.6] include/asm-ppc/dma-mapping.h: dma_unmap_page() Arthur Othieno
2004-04-23 23:50 ` Tom Rini
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=20040110060315.GZ18208@waste.org \
--to=mpm@selenic.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/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