linux-mips
[Top] [All Lists]

Re: Instruction error with cache opcode

To: "Kevin D. Kissell" <kevink@mips.com>
Subject: Re: Instruction error with cache opcode
From: John Miller <jamiller1110@cox.net>
Date: Sun, 14 May 2006 16:14:48 -0400
Cc: linux-mips@linux-mips.org
In-reply-to: <009501c6778e$947c3ff0$10eca8c0@grendel>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <446735C6.2080306@mountolympos.net> <002a01c67761$253e97f0$0202a8c0@Ulysses> <4467796E.8060000@mountolympos.net> <009501c6778e$947c3ff0$10eca8c0@grendel>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 1.5 (X11/20060402)
>
> Have you got your sources properly installes so that include/asm is
> a symlink to include/asm-mips?  
Yes, include/asm is symlinked to include/asm-mips.  Let me provide a
little more detail.  I did not want to modify head.S (since this is a
kernel file) but I noticed an undefined macro,

    kernel_entry_setup            # cpu specific setup

and the include #include <kernel-entry-init.h>

I found at least one kernel-entry-init.h file in a hardware specific
directory so I made my own under include/asm-mips/rb500 and added a line
to the Makefile.  Within kernel-entry-init.h are the include for
cacheops.h as well as the macro definition.  regdef.h is included in
head.s.
> I've done the experiment at my end,
> and it builds just fine so long as regdef.h and cacheops.h are really
> on the include path of the compilation.  If they're not, I get:
>
> [kevink@cthulhu tmp]$ mipsel-linux-gcc -I ~/smtchead/include -c cacheop.S
> cacheop.S: Assembler messages:
> cacheop.S:4: Error: Instruction cache requires absolute expression
> cacheop.S:4: Error: Instruction cache requires absolute expression
> cacheop.S:4: Error: illegal operands `cache'
>
>   

Well, it looks like I am missing something somewhere, just need to pin
down what I did wrong.

<Prev in Thread] Current Thread [Next in Thread>