All of lore.kernel.org
 help / color / mirror / Atom feed
* problem booting kernel compiled with gcc-4.9
@ 2014-06-26 12:29 Meelis Roos
  2014-06-30  5:23 ` Sam Ravnborg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Meelis Roos @ 2014-06-26 12:29 UTC (permalink / raw)
  To: sparclinux

I noticed that gcc 4.9.0 for sparc has landed on Debian unstable so I 
gave it a try on V210. Does not boot with strange error about user 
windows. This is reproducible. Since the same kernel comiled with gcc 
4.6 booted fine, it's probably a gcc 4.9 difference.


[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.30.4.a 2010/01/06 14:48'
[    0.000000] PROMLIB: Root node compatible: 
[    0.000000] Linux version 3.16.0-rc2-00211-gd7933ab (mroos@v210) (gcc version 4.9.0 (Debian 4.9.0-7) ) #96 SMP Thu Jun 26 14:56:25 EEST 2014
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:0a:f3:85
[    0.000000] PAGE_OFFSET is 0xfffffc0000000000 (max_phys_bits = 42)
[    0.000000] Kernel: Using 3 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1e,600000/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 118209 bytes of memory.
[    0.000000] Top of RAM: 0x10000000, Total RAM: 0x10000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x0fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x0fffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,ultra3,mul32,div32]
[    0.000000] CPU CAPS: [v8plus,vis,vis2]
[    0.000000] PERCPU: Embedded 6 pages/cpu @fffffc000f000000 s13184 r8192 d27776 u2097152
[    0.000000] pcpu-alloc: s13184 r8192 d27776 u2097152 alloc=1*4194304
[    0.000000] pcpu-alloc: [0] 0 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 ro mem%6M debug ignore_loglevel
[    0.000000] PID hash table entries: 1024 (order: 0, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 253112K/262144K available (3478K kernel code, 306K rwdata, 760K rodata, 160K init, 4477K bss, 9032K reserved)
[    0.000000] SLUB: HWalign2, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:255
[   27.652437] clocksource: mult[53555555] shift[24]
[   27.708683] clockevent: mult[3126e98] shift[32]
[   27.762932] Console: colour dummy device 80x25
[   27.816114] console [tty0] enabled
[   27.856850] bootconsole [earlyprom0] disabled
[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.30.4.a 2010/01/06 14:48'
[    0.000000] PROMLIB: Root node compatible: 
[    0.000000] Linux version 3.16.0-rc2-00211-gd7933ab (mroos@v210) (gcc version 4.9.0 (Debian 4.9.0-7) ) #96 SMP Thu Jun 26 14:56:25 EEST 2014
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] bootconsole [earlyprom0] enabled
[    0.000000] ARCH: SUN4U
[    0.000000] Ethernet address: 00:03:ba:0a:f3:85
[    0.000000] PAGE_OFFSET is 0xfffffc0000000000 (max_phys_bits = 42)
[    0.000000] Kernel: Using 3 locked TLB entries for main kernel image.
[    0.000000] Remapping the kernel... done.
[    0.000000] OF stdout device is: /pci@1e,600000/isa@7/serial@0,3f8
[    0.000000] PROM: Built device tree with 118209 bytes of memory.
[    0.000000] Top of RAM: 0x10000000, Total RAM: 0x10000000
[    0.000000] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x0fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x0fffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] Booting Linux...
[    0.000000] CPU CAPS: [flush,stbar,swap,muldiv,v9,ultra3,mul32,div32]
[    0.000000] CPU CAPS: [v8plus,vis,vis2]
[    0.000000] PERCPU: Embedded 6 pages/cpu @fffffc000f000000 s13184 r8192 d27776 u2097152
[    0.000000] pcpu-alloc: s13184 r8192 d27776 u2097152 alloc=1*4194304
[    0.000000] pcpu-alloc: [0] 0 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 ro mem%6M debug ignore_loglevel
[    0.000000] PID hash table entries: 1024 (order: 0, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 131072 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 253112K/262144K available (3478K kernel code, 306K rwdata, 760K rodata, 160K init, 4477K bss, 9032K reserved)
[    0.000000] SLUB: HWalign2, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:255
[   27.652437] clocksource: mult[53555555] shift[24]
[   27.708683] clockevent: mult[3126e98] shift[32]
[   27.762932] Console: colour dummy device 80x25
[   27.816114] console [tty0] enabled
[   27.856850] bootconsole [earlyprom0] disabled
[   28.058966] Calibrating delay using timer specific routine.. 24.01 BogoMIPS (lpj\x120052)
[   28.058980] pid_max: default: 32768 minimum: 301
[   28.059076] Mount-cache hash table entries: 1024 (order: 0, 8192 bytes)
[   28.059087] Mountpoint-cache hash table entries: 1024 (order: 0, 8192 bytes)
[   28.061436] CPU 0: synchronized TICK with master CPU (last diff 0 cycles, maxerr 5 cycles)
[   28.061468] Brought up 2 CPUs
[   28.061501] Testing NMI watchdog ... OK.
[   28.262078] devtmpfs: initialized
[   28.319234] prandom: seed boundary self test passed
[   28.321039] prandom: 100 self tests passed
[   28.323810] NET: Registered protocol family 16
[   28.328148] /pci@1f,700000: TOMATILLO PCI Bus Module ver[4:0]
[   28.328167] /pci@1f,700000: PCI IO[7f601000000] MEM[7f700000000]
[   28.330186] PCI: Scanning PBM /pci@1f,700000
[   28.330303] schizo f0069c00: PCI host bridge to bus 0000:00
[   28.330321] pci_bus 0000:00: root bus resource [io  0x7f601000000-0x7f601ffffff] (bus address [0x0000-0xffffff])
[   28.330337] pci_bus 0000:00: root bus resource [mem 0x7f700000000-0x7f7ffffffff] (bus address [0x00000000-0xffffffff])
[   28.330352] pci_bus 0000:00: root bus resource [bus 00]
[   28.330456] pci 0000:00:02.0: PME# supported from D3hot
[   28.330673] pci 0000:00:02.1: PME# supported from D3hot
[   28.330994] /pci@1e,600000: TOMATILLO PCI Bus Module ver[4:0]
[   28.331010] /pci@1e,600000: PCI IO[7fe01000000] MEM[7ff00000000]
[   28.333184] PCI: Scanning PBM /pci@1e,600000
[   28.333321] schizo f00732d0: PCI host bridge to bus 0001:00
[   28.333345] pci_bus 0001:00: root bus resource [io  0x7fe01000000-0x7fe01ffffff] (bus address [0x0000-0xffffff])
[   28.333374] pci_bus 0001:00: root bus resource [mem 0x7ff00000000-0x7ffffffffff] (bus address [0x00000000-0xffffffff])
[   28.333401] pci_bus 0001:00: root bus resource [bus 00]
[   28.333648] pci 0001:00:06.0: quirk: [io  0x7fe01000800-0x7fe0100083f] claimed by ali7101 ACPI
[   28.333677] pci 0001:00:06.0: quirk: [io  0x7fe01000600-0x7fe0100061f] claimed by ali7101 SMB
[   28.333885] pci 0001:00:0a.0: PME# supported from D3cold
[   28.334429] /pci@1c,600000: TOMATILLO PCI Bus Module ver[4:0]
[   28.334449] /pci@1c,600000: PCI IO[7ce01000000] MEM[7cf00000000]
[   28.336598] PCI: Scanning PBM /pci@1c,600000
[   28.336724] schizo f007c6ac: PCI host bridge to bus 0002:00
[   28.336747] pci_bus 0002:00: root bus resource [io  0x7ce01000000-0x7ce01ffffff] (bus address [0x0000-0xffffff])
[   28.336773] pci_bus 0002:00: root bus resource [mem 0x7cf00000000-0x7cfffffffff] (bus address [0x00000000-0xffffffff])
[   28.336798] pci_bus 0002:00: root bus resource [bus 00]
[   28.336895] pci 0002:00:02.0: supports D1 D2
[   28.337081] pci 0002:00:02.1: supports D1 D2
[   28.337398] /pci@1d,700000: TOMATILLO PCI Bus Module ver[4:0]
[   28.337416] /pci@1d,700000: PCI IO[7c601000000] MEM[7c700000000]
[   28.339479] PCI: Scanning PBM /pci@1d,700000
[   28.339606] schizo f00859d4: PCI host bridge to bus 0003:00
[   28.339630] pci_bus 0003:00: root bus resource [io  0x7c601000000-0x7c601ffffff] (bus address [0x0000-0xffffff])
[   28.339657] pci_bus 0003:00: root bus resource [mem 0x7c700000000-0x7c7ffffffff] (bus address [0x00000000-0xffffffff])
[   28.339682] pci_bus 0003:00: root bus resource [bus 00]
[   28.339807] pci 0003:00:02.0: PME# supported from D3hot
[   28.340049] pci 0003:00:02.1: PME# supported from D3hot
[   28.370210] vgaarb: loaded
[   28.370520] SCSI subsystem initialized
[   28.371306] /pci@1e,600000/isa@7/rtc@0,70: RTC regs at 0x7fe01000070
[   28.371970] Switched to clocksource stick
[   28.376783] NET: Registered protocol family 2
[   28.377246] TCP established hash table entries: 2048 (order: 1, 16384 bytes)
[   28.377322] TCP bind hash table entries: 2048 (order: 2, 32768 bytes)
[   28.377437] TCP: Hash tables configured (established 2048 bind 2048)
[   28.377526] TCP: reno registered
[   28.377542] UDP hash table entries: 256 (order: 0, 8192 bytes)
[   28.377584] UDP-Lite hash table entries: 256 (order: 0, 8192 bytes)
[   28.377782] NET: Registered protocol family 1
[   28.377856] pci 0001:00:07.0: Activating ISA DMA hang workarounds
[   28.377893] PCI: Enabling device: (0001:00:0a.0), cmd 2
[   28.432020] PCI: CLS 64 bytes, default 64
[   28.432229] power: Control reg at 7fe01000800
[   28.432710] chmc: UltraSPARC-IIIi memory controller at /memory-controller@0,0
[   28.432746] chmc: UltraSPARC-IIIi memory controller at /memory-controller@1,0
[   28.433354] futex hash table entries: 512 (order: 2, 32768 bytes)
[   28.441892] msgmni has been set to 494
[   28.442452] io scheduler noop registered
[   28.442604] io scheduler cfq registered (default)
[   28.443225] f00aba6c: ttyS0 at MMIO 0x7fe010003f8 (irq = 15, base_baud = 115387) is a 16550A
[   28.443251] Console: ttyS0 (SU)
[   37.128656] console [ttyS0] enabled
[   37.174662] f00ad5ec: ttyS1 at MMIO 0x7fe010002e8 (irq = 15, base_baud = 115387) is a 16550A
[   37.286248] PCI: Enabling device: (0002:00:02.0), cmd 147
[   37.357777] sym0: <1010-66> rev 0x1 at pci 0002:00:02.0 irq 24
[   37.436603] sym0: No NVRAM, ID 7, Fast-80, LVD, parity checking
[   37.555033] sym0: SCSI BUS has been reset.
[   37.608823] scsi0 : sym-2.2.3
[   40.583144] scsi 0:0:0:0: Direct-Access     FUJITSU  MAW3073NCSUN72G  1703 PQ: 0 ANSI: 4
[   40.689631] scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
[   40.792643] scsi target0:0:0: Beginning Domain Validation
[   40.869395] scsi target0:0:0: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 31)
[   41.075788] scsi target0:0:0: Ending Domain Validation
[   45.255432] PCI: Enabling device: (0002:00:02.1), cmd 147
[   45.327001] sym1: <1010-66> rev 0x1 at pci 0002:00:02.1 irq 25
[   45.405837] sym1: No NVRAM, ID 7, Fast-80, LVD, parity checking
[   45.524248] sym1: SCSI BUS has been reset.
[   45.578043] scsi1 : sym-2.2.3
[   53.004044] mousedev: PS/2 mouse device common for all mice
[   53.004902] sd 0:0:0:0: [sda] 143374738 512-byte logical blocks: (73.4 GB/68.3 GiB)
[   53.007810] sd 0:0:0:0: [sda] Write Protect is off
[   53.007816] sd 0:0:0:0: [sda] Mode Sense: c7 00 00 08
[   53.008945] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   53.428182] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[   53.511742] rtc_cmos rtc_cmos: no alarms, 114 bytes nvram
[   53.583109] TCP: cubic registered
[   53.626603] NET: Registered protocol family 17
[   53.685941] rtc_cmos rtc_cmos: setting system clock to 2014-06-26 12:05:58 UTC (1403784358)
[   53.693569]  sda: sda1 sda2 sda3 sda4
[   53.699149] sd 0:0:0:0: [sda] Attached SCSI disk
[   53.910103] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[   54.011911] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
[   54.136507] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[   54.237263] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[   54.340199] devtmpfs: mounted
[   54.451346] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[   54.451346] 
[   54.571516] CPU: 1 PID: 1 Comm: init Not tainted 3.16.0-rc2-00211-gd7933ab #96
[   54.666431] Call Trace:
[   54.698453]  [0000000000762f8c] panic+0xb0/0x224
[   54.759071]  [000000000045cf68] do_exit+0x948/0x960
[   54.823123]  [000000000042cbc0] fault_in_user_windows+0xe0/0x100
[   54.902036]  [0000000000404ad0] __handle_user_windows+0x0/0x10
[   54.978662] Press Stop-A (L1-A) to return to the boot prom
[   55.050713] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004


-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem booting kernel compiled with gcc-4.9
  2014-06-26 12:29 problem booting kernel compiled with gcc-4.9 Meelis Roos
@ 2014-06-30  5:23 ` Sam Ravnborg
  2014-07-01  5:41 ` Meelis Roos
  2014-08-25 13:14 ` Meelis Roos
  2 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2014-06-30  5:23 UTC (permalink / raw)
  To: sparclinux

> [   53.693569]  sda: sda1 sda2 sda3 sda4
> [   53.699149] sd 0:0:0:0: [sda] Attached SCSI disk
> [   53.910103] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
> [   54.011911] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
> [   54.136507] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
> [   54.237263] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.

Do you see the above when the kernel boots properly with the older gcc?

If not then I suggest to forward the bug report to the ext4 mailing list
(which I cannot remeber the address of - maybe fsdevel)

	Sam

> [   54.340199] devtmpfs: mounted
> [   54.451346] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
> [   54.451346] 
> [   54.571516] CPU: 1 PID: 1 Comm: init Not tainted 3.16.0-rc2-00211-gd7933ab #96
> [   54.666431] Call Trace:
> [   54.698453]  [0000000000762f8c] panic+0xb0/0x224
> [   54.759071]  [000000000045cf68] do_exit+0x948/0x960
> [   54.823123]  [000000000042cbc0] fault_in_user_windows+0xe0/0x100
> [   54.902036]  [0000000000404ad0] __handle_user_windows+0x0/0x10
> [   54.978662] Press Stop-A (L1-A) to return to the boot prom
> [   55.050713] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
> 
> 
> -- 
> Meelis Roos (mroos@linux.ee)
> --
> To unsubscribe from this list: send the line "unsubscribe sparclinux" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem booting kernel compiled with gcc-4.9
  2014-06-26 12:29 problem booting kernel compiled with gcc-4.9 Meelis Roos
  2014-06-30  5:23 ` Sam Ravnborg
@ 2014-07-01  5:41 ` Meelis Roos
  2014-08-25 13:14 ` Meelis Roos
  2 siblings, 0 replies; 4+ messages in thread
From: Meelis Roos @ 2014-07-01  5:41 UTC (permalink / raw)
  To: sparclinux

> > [   53.693569]  sda: sda1 sda2 sda3 sda4
> > [   53.699149] sd 0:0:0:0: [sda] Attached SCSI disk
> > [   53.910103] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
> > [   54.011911] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
> > [   54.136507] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
> > [   54.237263] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
> 
> Do you see the above when the kernel boots properly with the older gcc?

Yes, these lines are normal on most of my machines (compiling only ext4 
and using it for ext2 and ext3 too if encountered).

In my reading of the dmesg and code, a fault in fault_in_user_windows is 
causing the trouble when copy_to_user into init process fails.

> > [   54.340199] devtmpfs: mounted
> > [   54.451346] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
> > [   54.451346] 
> > [   54.571516] CPU: 1 PID: 1 Comm: init Not tainted 3.16.0-rc2-00211-gd7933ab #96
> > [   54.666431] Call Trace:
> > [   54.698453]  [0000000000762f8c] panic+0xb0/0x224
> > [   54.759071]  [000000000045cf68] do_exit+0x948/0x960
> > [   54.823123]  [000000000042cbc0] fault_in_user_windows+0xe0/0x100
> > [   54.902036]  [0000000000404ad0] __handle_user_windows+0x0/0x10
> > [   54.978662] Press Stop-A (L1-A) to return to the boot prom
> > [   55.050713] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004


-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem booting kernel compiled with gcc-4.9
  2014-06-26 12:29 problem booting kernel compiled with gcc-4.9 Meelis Roos
  2014-06-30  5:23 ` Sam Ravnborg
  2014-07-01  5:41 ` Meelis Roos
@ 2014-08-25 13:14 ` Meelis Roos
  2 siblings, 0 replies; 4+ messages in thread
From: Meelis Roos @ 2014-08-25 13:14 UTC (permalink / raw)
  To: sparclinux

> I noticed that gcc 4.9.0 for sparc has landed on Debian unstable so I 
> gave it a try on V210. Does not boot with strange error about user 
> windows. This is reproducible. Since the same kernel comiled with gcc 
> 4.6 booted fine, it's probably a gcc 4.9 difference.

I have done some more testing and digging.

About tests - 4.9 is problematic only on my UltraSparc IIIi machines 
(V210 and V440). US I not tested yet, all US II variants work fine in my 
servers. V480 with ful US III crashes with FATAL exception in different 
point of startup so I do not know about it.

> [   54.571516] CPU: 1 PID: 1 Comm: init Not tainted 3.16.0-rc2-00211-gd7933ab #96
> [   54.666431] Call Trace:
> [   54.698453]  [0000000000762f8c] panic+0xb0/0x224
> [   54.759071]  [000000000045cf68] do_exit+0x948/0x960
> [   54.823123]  [000000000042cbc0] fault_in_user_windows+0xe0/0x100
> [   54.902036]  [0000000000404ad0] __handle_user_windows+0x0/0x10
> [   54.978662] Press Stop-A (L1-A) to return to the boot prom
> [   55.050713] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

This is always the same.

Below are the disassemblies of fault_in_user_windows from 4.6.4 and 
4.9.0.

From gcc 4.6:

000000000042cac0 <fault_in_user_windows>:
  42cac0:	9d e3 bf 50 	save  %sp, -176, %sp
  42cac4:	7f ff 65 e7 	call  406260 <__flushw_user>
  42cac8:	b0 10 00 06 	mov  %g6, %i0
  42cacc:	f8 09 a0 0d 	ldub  [ %g6 + 0xd ], %i4
  42cad0:	02 c7 00 29 	brz,pn   %i4, 42cb74 <fault_in_user_windows+0xb4>
  42cad4:	82 10 00 06 	mov  %g6, %g1
  42cad8:	b6 07 20 77 	add  %i4, 0x77, %i3
  42cadc:	b8 07 3f ff 	add  %i4, -1, %i4
  42cae0:	c2 58 60 08 	ldx  [ %g1 + 8 ], %g1
  42cae4:	b7 2e f0 03 	sllx  %i3, 3, %i3
  42cae8:	b3 2f 30 07 	sllx  %i4, 7, %i1
  42caec:	b6 06 00 1b 	add  %i0, %i3, %i3
  42caf0:	b2 06 00 19 	add  %i0, %i1, %i1
  42caf4:	b6 06 e0 08 	add  %i3, 8, %i3
  42caf8:	b2 06 60 48 	add  %i1, 0x48, %i1
  42cafc:	82 08 60 80 	and  %g1, 0x80, %g1
  42cb00:	02 c8 40 19 	brz  %g1, 42cb64 <fault_in_user_windows+0xa4>
  42cb04:	fa 5e c0 00 	ldx  [ %i3 ], %i5
  42cb08:	82 0f 60 01 	and  %i5, 1, %g1
  42cb0c:	0a c8 40 16 	brnz  %g1, 42cb64 <fault_in_user_windows+0xa4>
  42cb10:	b4 10 20 40 	mov  0x40, %i2
  42cb14:	82 0f 60 07 	and  %i5, 7, %g1
  42cb18:	0a c0 40 22 	brnz,pn   %g1, 42cba0 <fault_in_user_windows+0xe0>
  42cb1c:	01 00 00 00 	nop 
  42cb20:	90 10 00 1d 	mov  %i5, %o0
  42cb24:	92 10 00 19 	mov  %i1, %o1
  42cb28:	40 07 63 56 	call  605880 <___copy_to_user>
  42cb2c:	94 10 00 1a 	mov  %i2, %o2
  42cb30:	0a c2 00 14 	brnz,pn   %o0, 42cb80 <fault_in_user_windows+0xc0>
  42cb34:	90 10 00 1d 	mov  %i5, %o0
  42cb38:	02 c7 00 0e 	brz,pn   %i4, 42cb70 <fault_in_user_windows+0xb0>
  42cb3c:	b6 06 ff f8 	add  %i3, -8, %i3
  42cb40:	b8 07 3f ff 	add  %i4, -1, %i4
  42cb44:	82 10 00 06 	mov  %g6, %g1
  42cb48:	fa 5e c0 00 	ldx  [ %i3 ], %i5
  42cb4c:	b3 2f 30 07 	sllx  %i4, 7, %i1
  42cb50:	c2 58 60 08 	ldx  [ %g1 + 8 ], %g1
  42cb54:	b2 06 00 19 	add  %i0, %i1, %i1
  42cb58:	82 08 60 80 	and  %g1, 0x80, %g1
  42cb5c:	0a f8 7f eb 	brnz  %g1, 42cb08 <fault_in_user_windows+0x48>
  42cb60:	b2 06 60 48 	add  %i1, 0x48, %i1
  42cb64:	ba 07 67 ff 	add  %i5, 0x7ff, %i5
  42cb68:	10 6f ff eb 	b  %xcc, 42cb14 <fault_in_user_windows+0x54>
  42cb6c:	b4 10 20 80 	mov  0x80, %i2
  42cb70:	82 10 00 06 	mov  %g6, %g1
  42cb74:	c0 28 60 0d 	clrb  [ %g1 + 0xd ]
  42cb78:	81 cf e0 08 	rett  %i7 + 8
  42cb7c:	01 00 00 00 	nop 
  42cb80:	92 10 00 19 	mov  %i1, %o1
  42cb84:	40 07 71 7f 	call  609180 <copy_to_user_fixup>
  42cb88:	94 10 00 1a 	mov  %i2, %o2
  42cb8c:	02 f2 3f eb 	brz,pn   %o0, 42cb38 <fault_in_user_windows+0x78>
  42cb90:	90 10 20 04 	mov  4, %o0
  42cb94:	b8 07 20 01 	inc  %i4
  42cb98:	40 00 bf d2 	call  45cae0 <do_exit>
  42cb9c:	f8 29 a0 0d 	stb  %i4, [ %g6 + 0xd ]
  42cba0:	7f ff fd b0 	call  42c260 <stack_unaligned>
  42cba4:	90 10 00 1d 	mov  %i5, %o0
  42cba8:	10 6f ff df 	b  %xcc, 42cb24 <fault_in_user_windows+0x64>
  42cbac:	90 10 00 1d 	mov  %i5, %o0
  42cbb0:	30 68 00 04 	b,a   %xcc, 42cbc0 <sparc_do_fork>
  42cbb4:	01 00 00 00 	nop 
  42cbb8:	01 00 00 00 	nop 
  42cbbc:	01 00 00 00 	nop 


From gcc 4.9:

000000000042cae0 <fault_in_user_windows>:
  42cae0:	9d e3 bf 50 	save  %sp, -176, %sp
  42cae4:	7f ff 65 df 	call  406260 <__flushw_user>
  42cae8:	b6 10 00 06 	mov  %g6, %i3
  42caec:	f8 09 a0 0d 	ldub  [ %g6 + 0xd ], %i4
  42caf0:	83 2f 30 07 	sllx  %i4, 7, %g1
  42caf4:	84 10 00 1c 	mov  %i4, %g2
  42caf8:	82 00 7f c8 	add  %g1, -56, %g1
  42cafc:	b9 2f 30 03 	sllx  %i4, 3, %i4
  42cb00:	b8 06 c0 1c 	add  %i3, %i4, %i4
  42cb04:	b4 00 bf ff 	add  %g2, -1, %i2
  42cb08:	02 c0 80 30 	brz,pn   %g2, 42cbc8 <fault_in_user_windows+0xe8>
  42cb0c:	b6 06 c0 01 	add  %i3, %g1, %i3
  42cb10:	c2 59 a0 08 	ldx  [ %g6 + 8 ], %g1
  42cb14:	82 08 60 80 	and  %g1, 0x80, %g1
  42cb18:	02 c8 40 17 	brz  %g1, 42cb74 <fault_in_user_windows+0x94>
  42cb1c:	fa 5f 23 c0 	ldx  [ %i4 + 0x3c0 ], %i5
  42cb20:	82 0f 60 01 	and  %i5, 1, %g1
  42cb24:	0a c8 40 14 	brnz  %g1, 42cb74 <fault_in_user_windows+0x94>
  42cb28:	b2 10 20 40 	mov  0x40, %i1
  42cb2c:	82 0f 60 07 	and  %i5, 7, %g1
  42cb30:	0a c0 40 15 	brnz,pn   %g1, 42cb84 <fault_in_user_windows+0xa4>
  42cb34:	01 00 00 00 	nop 
  42cb38:	90 10 00 1d 	mov  %i5, %o0
  42cb3c:	92 10 00 1b 	mov  %i3, %o1
  42cb40:	40 07 73 c0 	call  609a40 <___copy_to_user>
  42cb44:	94 10 00 19 	mov  %i1, %o2
  42cb48:	0a c2 00 18 	brnz,pn   %o0, 42cba8 <fault_in_user_windows+0xc8>
  42cb4c:	90 10 00 1d 	mov  %i5, %o0
  42cb50:	82 06 bf ff 	add  %i2, -1, %g1
  42cb54:	b8 07 3f f8 	add  %i4, -8, %i4
  42cb58:	02 c6 80 1c 	brz,pn   %i2, 42cbc8 <fault_in_user_windows+0xe8>
  42cb5c:	b6 06 ff 80 	add  %i3, -128, %i3
  42cb60:	b4 10 00 01 	mov  %g1, %i2
  42cb64:	c2 59 a0 08 	ldx  [ %g6 + 8 ], %g1
  42cb68:	82 08 60 80 	and  %g1, 0x80, %g1
  42cb6c:	0a f8 7f ed 	brnz  %g1, 42cb20 <fault_in_user_windows+0x40>
  42cb70:	fa 5f 23 c0 	ldx  [ %i4 + 0x3c0 ], %i5
  42cb74:	ba 07 67 ff 	add  %i5, 0x7ff, %i5
  42cb78:	82 0f 60 07 	and  %i5, 7, %g1
  42cb7c:	02 f8 7f ef 	brz  %g1, 42cb38 <fault_in_user_windows+0x58>
  42cb80:	b2 10 20 80 	mov  0x80, %i1
  42cb84:	7f ff fc cf 	call  42bec0 <stack_unaligned>
  42cb88:	90 10 00 1d 	mov  %i5, %o0
  42cb8c:	90 10 00 1d 	mov  %i5, %o0
  42cb90:	92 10 00 1b 	mov  %i3, %o1
  42cb94:	40 07 73 ab 	call  609a40 <___copy_to_user>
  42cb98:	94 10 00 19 	mov  %i1, %o2
  42cb9c:	02 fa 3f ee 	brz  %o0, 42cb54 <fault_in_user_windows+0x74>
  42cba0:	82 06 bf ff 	add  %i2, -1, %g1
  42cba4:	90 10 00 1d 	mov  %i5, %o0
  42cba8:	92 10 00 1b 	mov  %i3, %o1
  42cbac:	40 07 81 e5 	call  60d340 <copy_to_user_fixup>
  42cbb0:	94 10 00 19 	mov  %i1, %o2
  42cbb4:	02 f2 3f e7 	brz,pn   %o0, 42cb50 <fault_in_user_windows+0x70>
  42cbb8:	90 10 20 04 	mov  4, %o0
  42cbbc:	b4 06 a0 01 	inc  %i2
  42cbc0:	40 00 be 98 	call  45c620 <do_exit>
  42cbc4:	f4 29 a0 0d 	stb  %i2, [ %g6 + 0xd ]
  42cbc8:	c0 29 a0 0d 	clrb  [ %g6 + 0xd ]
  42cbcc:	81 cf e0 08 	rett  %i7 + 8
  42cbd0:	01 00 00 00 	nop 
  42cbd4:	30 68 00 03 	b,a   %xcc, 42cbe0 <sparc_do_fork>
  42cbd8:	01 00 00 00 	nop 
  42cbdc:	01 00 00 00 	nop 


-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-25 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 12:29 problem booting kernel compiled with gcc-4.9 Meelis Roos
2014-06-30  5:23 ` Sam Ravnborg
2014-07-01  5:41 ` Meelis Roos
2014-08-25 13:14 ` Meelis Roos

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.