* Inlining of certain functions prevent R3000 kernel from booting...
@ 2001-12-13 19:17 Steven J. Hill
2001-12-13 21:47 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Steven J. Hill @ 2001-12-13 19:17 UTC (permalink / raw)
To: linux-mips
Hello.
While trying to compile the latest CVS kernel, I notice that by not
inlining certain functions my kernel boots fine. If I put the inlines
back in, the kernel hangs and does not boot. Below are the three
functions that I am unable to inline:
****************************************************************
diff -urN -X cvs-exc.txt nino-linux/arch/mips/kernel/traps.c /opt/sgi-cvs/linux-
2.4/linux/arch/mips/kernel/traps.c
--- nino-linux/arch/mips/kernel/traps.c Wed Dec 12 17:42:53 2001
+++ /opt/sgi-cvs/linux-2.4/linux/arch/mips/kernel/traps.c Sun Dec 2 05:34
:38 2001
@@ -100,7 +100,7 @@
static struct task_struct *ll_task = NULL;
-static void simulate_ll(struct pt_regs *regp, unsigned int opcode)
+static inline void simulate_ll(struct pt_regs *regp, unsigned int opcode)
{
unsigned long value, *vaddr;
long offset;
@@ -141,7 +141,7 @@
send_sig(signal, current, 1);
}
-static void simulate_sc(struct pt_regs *regp, unsigned int opcode)
+static inline void simulate_sc(struct pt_regs *regp, unsigned int opcode)
{
unsigned long *vaddr, reg;
long offset;
diff -urN -X cvs-exc.txt nino-linux/arch/mips/kernel/unaligned.c /opt/sgi-cvs/li
nux-2.4/linux/arch/mips/kernel/unaligned.c
--- nino-linux/arch/mips/kernel/unaligned.c Wed Dec 12 17:47:27 2001
+++ /opt/sgi-cvs/linux-2.4/linux/arch/mips/kernel/unaligned.c Sat Dec 1 00:04
:49 2001
@@ -96,7 +96,7 @@
if ((long)(~(pc) & ((a) | ((a)+(s)))) < 0) \
goto sigbus;
-static void emulate_load_store_insn(struct pt_regs *regs,
+static inline void emulate_load_store_insn(struct pt_regs *regs,
unsigned long addr, unsigned long pc
)
{
union mips_instruction insn;
****************************************************************
I attempted to do a 'objdump -d' on the kernels with and without
the inline statements to see if any registers might be getting
hammered. I was not able to see anything obvious, but I did find
it difficult to decipher things once inlining was enabled. I have
placed the unstripped kernels in a tarball at:
ftp://ftp.cotw.com/MIPS/mips-r3k-inline-kernels.tar.bz2
The cross toolchain was made up of:
binutils-2.11.92.0.10
gcc-3.0.2
glibc-2.2.3
Is anyone else having problems like this? I am doing the Philips Nino port
which has a PR31700 (R3000A core) chip in it. Thanks.
-Steve
--
Steven J. Hill - Embedded SW Engineer
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Inlining of certain functions prevent R3000 kernel from booting...
2001-12-13 19:17 Inlining of certain functions prevent R3000 kernel from booting Steven J. Hill
@ 2001-12-13 21:47 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2001-12-13 21:47 UTC (permalink / raw)
To: Steven J. Hill; +Cc: linux-mips
On Thu, Dec 13, 2001 at 01:17:42PM -0600, Steven J. Hill wrote:
> The cross toolchain was made up of:
>
> binutils-2.11.92.0.10
> gcc-3.0.2
^^^^^
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-13 22:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-13 19:17 Inlining of certain functions prevent R3000 kernel from booting Steven J. Hill
2001-12-13 21:47 ` Ralf Baechle
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.