From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Andreas Barth <aba@not.so.argh.org>
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH v3 1/3] Loongson-2F: Flush the branch target history such as BTB and RAS
Date: Mon, 12 Apr 2010 11:33:59 +0800 [thread overview]
Message-ID: <1271043239.1917.11.camel@falcon> (raw)
In-Reply-To: <20100410081039.GK27216@mails.so.argh.org>
On Sat, 2010-04-10 at 10:10 +0200, Andreas Barth wrote:
> * Wu Zhangjin (wuzhangjin@gmail.com) [100407 09:38]:
> > On Tue, 2010-04-06 at 21:10 +0200, Andreas Barth wrote:
> > [...]
> > >
> > > The kernel vmlinuz-2.6.33-lemote2f-bfs inside of
> > > http://www.anheng.com.cn/loongson/install/loongson2_debian6_20100328.tar.lzma
> > > (linked via linux-loongson-community) fails at the same place:
> > >
> > > touch stamp-picdir
> > > if [ x"-fPIC" != x ]; then \
> > > gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fPIC ../../libiberty/regex.c -o pic/regex.o; \
> > > else true; fi
> > > gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/regex.c -o regex.o
> > > if [ x"-fPIC" != x ]; then \
> > > gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fPIC ../../libiberty/cplus-dem.c -o pic/cplus-dem.o; \
> > > else true; fi
> > >
> >
> > When & where did you get the above information?
> >
> > do you mean the kernel can not boot or there are some other problems
> > after the kernel booting?
> >
> > I guess: the whole system crashed when you was compiling something? then
> > please ensure the as & ld is ok via fixing the NOPS with the tool
> > (fix-nop.c) from http://dev.lemote.com/code/linux-loongson-community :
>
> The kernel does boot, but the whole machines crashes.
>
> I know the fixups (I have adjusted binutils), but I need an kernel
> that userland cannot crash (otherwise it gets a bit hard to run that
> as debian buildd).
>
>
The userland canot be prevented from crash without user-space fixups,
that's why we need the fix-nop.c to fix the NOPs in the binaries of
user-land applications or using the -mfix-loongson-nop to compile the
user-land applications.
If you just need to rebuild debian, you just need to fix the NOPs in the
as and ld with fix-nop.c as I have mentioned before:
$ ./fix-nop $(which as)
$ ./fix-nop $(which ld)
Regards,
Wu Zhangjin
next prev parent reply other threads:[~2010-04-12 3:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-13 4:34 [PATCH v3 0/3] Workaround the Out-of-order Issue of Loongson-2F Wu Zhangjin
2010-03-13 4:34 ` [PATCH v3 1/3] Loongson-2F: Flush the branch target history such as BTB and RAS Wu Zhangjin
2010-03-17 15:11 ` Ralf Baechle
2010-04-02 14:54 ` Andreas Barth
2010-04-03 1:42 ` Wu Zhangjin
2010-04-06 19:10 ` Andreas Barth
2010-04-07 7:30 ` Wu Zhangjin
2010-04-10 8:10 ` Andreas Barth
2010-04-12 3:33 ` Wu Zhangjin [this message]
2010-04-03 1:53 ` Zhang Le
2010-04-03 3:11 ` Andreas Barth
2010-03-13 4:34 ` [PATCH v3 2/3] Loongson-2F: Enable fixups of binutils 2.20.1 Wu Zhangjin
2010-03-17 13:52 ` Ralf Baechle
2010-03-27 16:29 ` Zhang Le
2010-03-27 17:20 ` Zhang Le
2010-03-27 23:17 ` zhangfx
2010-04-07 13:02 ` Wu Zhangjin
2010-03-13 4:34 ` [PATCH v3 3/3] Loongson-2F: Fixup of problems introduced by -mfix-loongson2f-jump " Wu Zhangjin
2010-03-17 15:02 ` Ralf Baechle
2010-03-27 17:13 ` Zhang Le
2010-04-07 12:57 ` Wu Zhangjin
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=1271043239.1917.11.camel@falcon \
--to=wuzhangjin@gmail.com \
--cc=aba@not.so.argh.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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