From: Kumba <kumba@gentoo.org>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org, ths@networkno.de, ralf@linux-mips.org
Subject: Re: [PATCH]: Remove CONFIG_BUILD_ELF64 entirely
Date: Mon, 26 Mar 2007 09:48:13 -0400 [thread overview]
Message-ID: <4607CF1D.50904@gentoo.org> (raw)
In-Reply-To: <20070326.193641.15269037.nemoto@toshiba-tops.co.jp>
[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]
Atsushi Nemoto wrote:
> It looks very strange. "lui k1, %hi(kernelsp)" should be enough for
> the -msym32 kernel. What is a version of binutils and gcc you are using?
>
> And could you show me disassembled list of handle_int (or some other
> rountines using get_saved_sp) of failed kernel?
>
> If you were using gcc 3.x, does this fix work for you?
>
> #if defined(CONFIG_32BIT) || (defined(KBUILD_64BIT_SYM32) && __GNUC__ >= 4)
> lui k1, %hi(kernelsp)
> #else
# mips64-unknown-linux-gnu-ld --version
GNU ld version 2.16.1
# mips64-unknown-linux-gnu-gcc --version
mips64-unknown-linux-gnu-gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
And the disassembly of vmlinux.32 for the handle_int function is attached.
I haven't built a kernel w/ gcc-3.x for some time, probably last time being when
I was chasing down the strange funkiness in my Octane's userland in 2.6.19.
--Kumba
--
Gentoo/MIPS Team Lead
"Such is oft the course of deeds that move the wheels of the world: small hands
do them because they must, while the eyes of the great are elsewhere." --Elrond
[-- Attachment #2: vmlnx-26204-dis-hi.txt --]
[-- Type: text/plain, Size: 2260 bytes --]
80006ac0 <handle_int>:
80006ac0: 401a6000 mfc0 k0,$12
80006ac4: 001ad0c0 sll k0,k0,0x3
80006ac8: 07400007 bltz k0,80006ae8 <handle_int+0x28>
80006acc: 03a0d82d move k1,sp
80006ad0: 3c1b0000 lui k1,0x0
80006ad4: 677b0000 daddiu k1,k1,0
80006ad8: 001bdc38 dsll k1,k1,0x10
80006adc: 677b8047 daddiu k1,k1,-32697
80006ae0: 001bdc38 dsll k1,k1,0x10
80006ae4: df7b5008 ld k1,20488(k1)
80006ae8: 03a0d02d move k0,sp
80006aec: 677dfed0 daddiu sp,k1,-304
80006af0: ffba00e8 sd k0,232(sp)
80006af4: ffa30018 sd v1,24(sp)
80006af8: ffa00000 sd zero,0(sp)
80006afc: 40036000 mfc0 v1,$12
80006b00: ffa20010 sd v0,16(sp)
80006b04: ffa30100 sd v1,256(sp)
80006b08: ffa40020 sd a0,32(sp)
80006b0c: 40036800 mfc0 v1,$13
80006b10: ffa50028 sd a1,40(sp)
80006b14: ffa30120 sd v1,288(sp)
80006b18: ffa60030 sd a2,48(sp)
80006b1c: 40237000 dmfc0 v1,$14
80006b20: ffa70038 sd a3,56(sp)
80006b24: ffa80040 sd t0,64(sp)
80006b28: ffa90048 sd t1,72(sp)
80006b2c: ffa30128 sd v1,296(sp)
80006b30: ffb900c8 sd t9,200(sp)
80006b34: ffbc00e0 sd gp,224(sp)
80006b38: ffbf00f8 sd ra,248(sp)
80006b3c: 37bc3fff ori gp,sp,0x3fff
80006b40: 3b9c3fff xori gp,gp,0x3fff
80006b44: ffa10008 sd at,8(sp)
80006b48: 00001810 mfhi v1
80006b4c: ffa30108 sd v1,264(sp)
80006b50: 00001812 mflo v1
80006b54: ffaa0050 sd t2,80(sp)
80006b58: ffab0058 sd t3,88(sp)
80006b5c: ffa30110 sd v1,272(sp)
80006b60: ffac0060 sd t4,96(sp)
80006b64: ffad0068 sd t5,104(sp)
80006b68: ffae0070 sd t6,112(sp)
80006b6c: ffaf0078 sd t7,120(sp)
80006b70: ffb800c0 sd t8,192(sp)
80006b74: ffb00080 sd s0,128(sp)
80006b78: ffb10088 sd s1,136(sp)
80006b7c: ffb20090 sd s2,144(sp)
80006b80: ffb30098 sd s3,152(sp)
80006b84: ffb400a0 sd s4,160(sp)
80006b88: ffb500a8 sd s5,168(sp)
80006b8c: ffb600b0 sd s6,176(sp)
80006b90: ffb700b8 sd s7,184(sp)
80006b94: ffbe00f0 sd s8,240(sp)
80006b98: 400c6000 mfc0 t4,$12
80006b9c: 3c0d1000 lui t5,0x1000
80006ba0: 35ad001f ori t5,t5,0x1f
80006ba4: 018d6025 or t4,t4,t5
80006ba8: 398c001f xori t4,t4,0x1f
80006bac: 408c6000 mtc0 t4,$12
...
80006bbc: df900058 ld s0,88(gp)
80006bc0: ff9d0058 sd sp,88(gp)
80006bc4: 3c1f8000 lui ra,0x8000
80006bc8: 0800154e j 80005538 <plat_irq_dispatch>
80006bcc: 67ff68a0 daddiu ra,ra,26784
next prev parent reply other threads:[~2007-03-26 13:49 UTC|newest]
Thread overview: 110+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 23:18 Building 64 bit kernel on Cobalt Jim Gifford
2007-03-04 23:27 ` Ralf Baechle
2007-03-08 6:11 ` Jim Gifford
2007-03-08 8:46 ` Jim Gifford
2007-03-08 12:48 ` Franck Bui-Huu
2007-03-08 16:11 ` Jim Gifford
2007-03-13 0:57 ` Jim Gifford
2007-03-13 10:38 ` Franck Bui-Huu
2007-03-13 11:53 ` Ralf Baechle
2007-03-18 21:52 ` Jim Gifford
2007-03-19 1:12 ` Atsushi Nemoto
2007-03-19 5:20 ` Jim Gifford
2007-03-19 6:07 ` Atsushi Nemoto
2007-03-19 10:08 ` Franck Bui-Huu
2007-03-19 10:17 ` Franck Bui-Huu
2007-03-21 17:07 ` Atsushi Nemoto
2007-03-21 19:31 ` Franck Bui-Huu
2007-03-23 13:47 ` Kumba
2007-03-23 15:24 ` Atsushi Nemoto
2007-03-24 3:31 ` Kumba
2007-03-24 14:47 ` Atsushi Nemoto
2007-03-24 23:16 ` Thiemo Seufer
2007-03-25 7:25 ` [PATCH]: Remove CONFIG_BUILD_ELF64 entirely Kumba
2007-03-25 14:45 ` Thiemo Seufer
2007-03-26 11:35 ` Maciej W. Rozycki
2007-03-26 11:56 ` Ralf Baechle
2007-03-26 12:09 ` Maciej W. Rozycki
2007-03-26 12:34 ` Ralf Baechle
2007-03-25 16:10 ` Atsushi Nemoto
2007-03-25 16:40 ` Ralf Baechle
2007-03-26 9:14 ` Franck Bui-Huu
2007-03-26 9:42 ` Thiemo Seufer
2007-03-25 16:59 ` Kumba
2007-03-25 17:07 ` Atsushi Nemoto
2007-03-25 18:33 ` Kumba
2007-03-26 10:36 ` Atsushi Nemoto
2007-03-26 13:48 ` Kumba [this message]
2007-03-26 14:43 ` Atsushi Nemoto
2007-03-27 0:51 ` Kumba
2007-03-27 14:53 ` Atsushi Nemoto
2007-03-27 17:54 ` Ilya A. Volynets-Evenbakh
2007-03-28 15:14 ` Atsushi Nemoto
2007-03-27 19:01 ` Thiemo Seufer
2007-03-28 13:26 ` Kumba
2007-03-28 15:24 ` Atsushi Nemoto
2007-03-29 1:50 ` Kumba
2007-03-29 14:53 ` Atsushi Nemoto
2007-03-30 6:18 ` Kumba
2007-03-30 2:20 ` Kumba
2007-02-18 20:00 ` IP32 prom crashes due to __pa() funkiness Kumba
2007-03-01 4:33 ` Kumba
2007-03-01 9:39 ` Franck Bui-Huu
2007-03-10 9:41 ` [PATCH], " peter fuerst
2007-03-17 19:52 ` Kumba
2007-03-17 21:48 ` Arnaud Giersch
2007-03-18 2:04 ` Kumba
2007-03-19 13:53 ` Franck Bui-Huu
2007-03-19 14:07 ` Thiemo Seufer
2007-03-19 14:19 ` Franck Bui-Huu
2007-03-19 14:17 ` Franck Bui-Huu
2007-03-19 14:24 ` Kumba
2007-03-19 14:45 ` Thiemo Seufer
2007-03-19 14:46 ` Atsushi Nemoto
2007-03-19 21:35 ` Franck Bui-Huu
2007-03-20 14:10 ` Kumba
2007-03-23 15:12 ` Franck Bui-Huu
[not found] ` <45FC3923.2080207@gentoo.org>
2007-03-18 9:42 ` peter fuerst
2007-03-18 21:26 ` Kumba
2007-03-18 21:37 ` Kumba
2007-03-18 22:44 ` Kumba
2007-03-19 13:57 ` Franck Bui-Huu
2007-03-30 3:01 ` [PATCH]: Remove CONFIG_BUILD_ELF64 entirely Atsushi Nemoto
2007-03-30 5:35 ` Kumba
2007-03-30 6:09 ` Atsushi Nemoto
2007-09-26 2:08 ` CONFIG_BUILD_ELF64 broken on IP32 since 2.6.20 Atsushi Nemoto
2007-09-26 5:59 ` Martin Michlmayr
2007-09-26 6:19 ` Giuseppe Sacco
2007-09-27 0:24 ` Thiemo Seufer
2007-09-26 9:14 ` Franck Bui-Huu
2007-09-26 14:42 ` Atsushi Nemoto
2007-03-25 22:19 ` [PATCH]: Remove CONFIG_BUILD_ELF64 entirely Ralf Baechle
2007-03-26 13:25 ` Atsushi Nemoto
2007-03-26 13:54 ` Franck Bui-Huu
2007-03-26 14:48 ` Atsushi Nemoto
2007-03-26 15:31 ` Franck Bui-Huu
2007-03-26 15:45 ` Atsushi Nemoto
2007-03-26 16:07 ` Franck Bui-Huu
2007-03-27 3:12 ` Atsushi Nemoto
2007-03-27 8:01 ` Franck Bui-Huu
2007-03-26 15:56 ` Thiemo Seufer
2007-03-26 9:02 ` Franck Bui-Huu
2007-03-25 15:40 ` Building 64 bit kernel on Cobalt Atsushi Nemoto
-- strict thread matches above, loose matches on Subject: below --
2007-09-25 18:13 CONFIG_BUILD_ELF64 broken on IP32 since 2.6.20 Martin Michlmayr
2007-09-25 18:32 ` sknauert
2007-09-25 18:43 ` Martin Michlmayr
2007-09-25 18:56 ` sknauert
2007-09-26 8:03 ` Franck Bui-Huu
2007-09-26 9:14 ` Martin Michlmayr
2007-09-26 9:54 ` Franck Bui-Huu
2007-09-26 10:24 ` Martin Michlmayr
2007-09-26 11:32 ` Maciej W. Rozycki
2007-09-26 13:34 ` Franck Bui-Huu
2007-09-26 13:46 ` Martin Michlmayr
2007-09-26 14:49 ` Maciej W. Rozycki
2007-09-26 15:34 ` Atsushi Nemoto
2007-09-26 15:47 ` Maciej W. Rozycki
2007-09-27 8:11 ` Franck Bui-Huu
2007-09-27 11:10 ` Maciej W. Rozycki
2007-09-27 13:36 ` Ralf Baechle
2007-09-27 13:47 ` Franck Bui-Huu
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=4607CF1D.50904@gentoo.org \
--to=kumba@gentoo.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=ths@networkno.de \
/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