Sunday, August 8, 2010

Ahh... OCTEON doesn't have FPU

I realized OCTEON doesn't have FPU but OpenBSD/mips suppose to have FPU on all supported machines.

 I don't know why but this backtrace says sh trying to enable fpu and it failed. Hah.

Initial setup done, switching console.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org


OpenBSD 4.7-current (RAMDISK.MP) #5: Sun Aug 8 07:51:44 JST 2010
syuu@macbook.localdomain:/home/syuu/openbsd-octeon/src/sys/arch/octeon/compile/RAMDISK.MP
real mem = 77742080 (74MB)
avail mem = 70664192 (67MB)
mainbus0 at root: Generic OCTEON
cpu0 at mainbus0: Unknown CPU type (0x6) rev 0.0 499 MHz, Unknown FPU type (0x6) rev 0.0
cpu0: cache L1-I 32KB D 16KB 4 way, L2 128KB direct
cpu0: Setsize 0:0
cpu0: Alias mask 0x0
cpu0: Config Register 8000c48f
cpu0: Cache configuration 0
cpu0: Status Register 508000e0
clock0 at mainbus0: ticker on int5 using count register
obio0 at mainbus0com0 at obio0 base 0x 800 irq 34: ns16550, no working fifo
com0: console
com1 at obio0 base 0x c00 irq 35: ns16550, no working fifo
Timecounters tick every 10.000 msec
rd0: fixed, 8192 blocks
root on rd0a swap on rd0b dump on rd0b
dev=0x800 chrdev=0x1600 rawdev=0x1602
WARNING: No TOD clock, believing file system.
WARNING: CHECK AND RESET THE DATE!
init: copying out path `/sbin/init' 11
proc 1 (init): native num 202 call: __sysctl(0x7ffe05f8, 0x2, 0x101a1c70, 0x7ffe0608, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x25
proc 1 (init): native num 202 call: __sysctl(0x7ffe05b8, 0x2, 0x1024c4b0, 0x7ffe05c8, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x6
proc 1 (init): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 1 (init): native num 197 ret: err = 0, rv = 0x514f4000,0x3
proc 1 (init): native num 74 call: mprotect(0x514f4000, 0x4000, 0x1)
proc 1 (init): native num 74 ret: err = 0, rv = 0x0,0x514f4018
proc 1 (init): native num 24 call: getuid()
proc 1 (init): native num 24 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 20 call: getpid()
proc 1 (init): native num 20 ret: err = 0, rv = 0x1,0x0
proc 1 (init): native num 147 call: setsid()
proc 1 (init): native num 147 ret: err = 0, rv = 0x1,0x10175fd8
proc 1 (init): native num 50 call: setlogin(0x10176000)
proc 1 (init): native num 50 ret: err = 0, rv = 0x0,0x10175fd8
proc 1 (init): native num 46 call: sigaction(0xc, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x6, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x8, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x4, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xb, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xa, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x18, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x19, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xf, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x12, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1e, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x1f, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0xe, 0x7ffe0528, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 48 call: sigprocmask(0x3, 0xffffffff9e7d9156)
proc 1 (init): native num 48 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x15, 0x7ffe05e8, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 46 call: sigaction(0x16, 0x7ffe05e8, 0x0)
proc 1 (init): native num 46 ret: err = 0, rv = 0x0,0x0
proc 1 (init): native num 6 call: close(0x0)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0x0
proc 1 (init): native num 6 call: close(0x1)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0xffffffffffffffff
proc 1 (init): native num 6 call: close(0x2)
proc 1 (init): native num 6 ret: err = 9, rv = 0x0,0xffffffffffffffff
proc 1 (init): native num 202 call: __sysctl(0x7ffdfcc8, 0x2, 0x7ffdfcd8, 0x7ffdfce0, 0x0, 0x0)
proc 1 (init): native num 202 ret: err = 0, rv = 0x0,0x1
proc 1 (init): native num 2 call: fork()
proc 1 (init): native num 2 ret: err = 0, rv = 0x4c1f,0x0
proc 1 (init): native num 7 call: wait4(0xffffffffffffffff, 0x7ffdfd0c, 0x2, 0x0)
proc 19487 (init): native num 56 call: revoke(0x10176158)
proc 19487 (init): native num 56 ret: err = 0, rv = 0x0,0x1
proc 19487 (init): native num 240 call: nanosleep(0x7ffdfc98, 0x7ffdfca8)
proc 19487 (init): native num 240 ret: err = 0, rv = 0x0,0x2
proc 19487 (init): native num 5 call: open(0x10176158, 0x2, 0x7ffdfcd8)
proc 19487 (init): native num 5 ret: err = 0, rv = 0x0,0x2
proc 19487 (init): native num 147 call: setsid()
proc 19487 (init): native num 147 ret: err = 0, rv = 0x4c1f,0x2
proc 19487 (init): native num 54 call: ioctl(0x0, 0x20007461, 0x0)
proc 19487 (init): native num 54 ret: err = 0, rv = 0x0,0x2
proc 19487 (init): native num 90 call: dup2(0x0, 0x0)
proc 19487 (init): native num 90 ret: err = 0, rv = 0x0,0xffffffffffffffff
proc 19487 (init): native num 90 call: dup2(0x0, 0x1)
proc 19487 (init): native num 90 ret: err = 0, rv = 0x1,0xffffffffffffffff
proc 19487 (init): native num 90 call: dup2(0x0, 0x2)
proc 19487 (init): native num 90 ret: err = 0, rv = 0x2,0xffffffffffffffff
proc 19487 (init): native num 48 call: sigprocmask(0x3, 0x0)
proc 19487 (init): native num 48 ret: err = 0, rv = 0x9e7c9056,0xffffffffffffffff
proc 19487 (init): native num 20 call: getpid()
proc 19487 (init): native num 20 ret: err = 0, rv = 0x4c1f,0x0
proc 19487 (init): native num 202 call: __sysctl(0x7ffdfa38, 0x2, 0x7ffdfa48, 0x7ffdfa28, 0x0, 0x0)
proc 19487 (init): native num 202 ret: err = 0, rv = 0x0,0x1
proc 19487 (init): native num 58 call: readlink(0x10186c30, 0x7ffdfb98, 0x3f)
proc 19487 (init): native num 58 ret: err = 2, rv = 0x0,0x10254008
proc 19487 (init): native num 253 call: issetugid()
proc 19487 (init): native num 253 ret: err = 0, rv = 0x0,0xffffffffffffffff
proc 19487 (init): native num 20 call: getpid()
proc 19487 (init): native num 20 ret: err = 0, rv = 0x4c1f,0x0
proc 19487 (init): native num 197 call: mmap(0x0, 0xc000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (init): native num 197 ret: err = 0, rv = 0x50df8000,0x3
proc 19487 (init): native num 74 call: mprotect(0x50df8000, 0x4000, 0x0)
proc 19487 (init): native num 74 ret: err = 0, rv = 0x0,0x3
proc 19487 (init): native num 74 call: mprotect(0x50e00000, 0x4000, 0x0)
proc 19487 (init): native num 74 ret: err = 0, rv = 0x0,0x3
proc 19487 (init): native num 20 call: getpid()
proc 19487 (init): native num 20 ret: err = 0, rv = 0x4c1f,0x100000000
proc 19487 (init): native num 197 call: mmap(0x0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (init): native num 197 ret: err = 0, rv = 0x5d618000,0x3
proc 19487 (init): native num 74 call: mprotect(0x10254000, 0x4000, 0x1)
proc 19487 (init): native num 74 ret: err = 0, rv = 0x0,0x1dbdd0be
proc 19487 (init): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (init): native num 197 ret: err = 0, rv = 0x60030000,0x3
proc 19487 (init): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (init): native num 197 ret: err = 0, rv = 0x5b104000,0x3
proc 19487 (init): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (init): native num 197 ret: err = 0, rv = 0x5f41c000,0x3
proc 19487 (init): native num 59 call: execve(0x7ffe0128, 0x7ffdfd18, 0x60030030)
proc 19487 (sh): native num 59 ret: err = 0, rv = 0x0,0x0
proc 19487 (sh): native num 202 call: __sysctl(0x7ffd3470, 0x2, 0x101a1c70, 0x7ffd3480, 0x0, 0x0)
proc 19487 (sh): native num 202 ret: err = 0, rv = 0x0,0x25
proc 19487 (sh): native num 202 call: __sysctl(0x7ffd3430, 0x2, 0x1024c4b0, 0x7ffd3440, 0x0, 0x0)
proc 19487 (sh): native num 202 ret: err = 0, rv = 0x0,0x6
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x57044000,0x3
proc 19487 (sh): native num 74 call: mprotect(0x57044000, 0x4000, 0x1)
proc 19487 (sh): native num 74 ret: err = 0, rv = 0x0,0x57044018
proc 19487 (sh): native num 20 call: getpid()
proc 19487 (sh): native num 20 ret: err = 0, rv = 0x4c1f,0x0
proc 19487 (sh): native num 202 call: __sysctl(0x7ffd2d30, 0x2, 0x7ffd2d40, 0x7ffd2d20, 0x0, 0x0)
proc 19487 (sh): native num 202 ret: err = 0, rv = 0x0,0x1
proc 19487 (sh): native num 58 call: readlink(0x10186c30, 0x7ffd2e90, 0x3f)
proc 19487 (sh): native num 58 ret: err = 2, rv = 0x0,0x10254008
proc 19487 (sh): native num 253 call: issetugid()
proc 19487 (sh): native num 253 ret: err = 0, rv = 0x0,0xffffffffffffffff
proc 19487 (sh): native num 20 call: getpid()
proc 19487 (sh): native num 20 ret: err = 0, rv = 0x4c1f,0x0
proc 19487 (sh): native num 197 call: mmap(0x0, 0xc000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5833c000,0x3
proc 19487 (sh): native num 74 call: mprotect(0x5833c000, 0x4000, 0x0)
proc 19487 (sh): native num 74 ret: err = 0, rv = 0x0,0x3
proc 19487 (sh): native num 74 call: mprotect(0x58344000, 0x4000, 0x0)
proc 19487 (sh): native num 74 ret: err = 0, rv = 0x0,0x3
proc 19487 (sh): native num 20 call: getpid()
proc 19487 (sh): native num 20 ret: err = 0, rv = 0x4c1f,0x100000000
proc 19487 (sh): native num 197 call: mmap(0x0, 0x2000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5ce80000,0x3
proc 19487 (sh): native num 74 call: mprotect(0x10254000, 0x4000, 0x1)
proc 19487 (sh): native num 74 ret: err = 0, rv = 0x0,0x4b545478
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5084c000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x50368000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5c278000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5454c000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5b930000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5a57c000,0x3
proc 19487 (sh): native num 46 call: sigaction(0x2, 0x1023b270, 0x7ffd2f60)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0xc0
proc 19487 (sh): native num 46 call: sigaction(0x2, 0x7ffd2f60, 0x0)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0xe8
proc 19487 (sh): native num 46 call: sigaction(0x3, 0x1023b270, 0x7ffd2f60)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0xc0
proc 19487 (sh): native num 46 call: sigaction(0x3, 0x7ffd2f60, 0x0)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0xe8
proc 19487 (sh): native num 46 call: sigaction(0xf, 0x1023b270, 0x7ffd2f60)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0x40
proc 19487 (sh): native num 46 call: sigaction(0xf, 0x7ffd2f60, 0x0)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0x68
proc 19487 (sh): native num 46 call: sigaction(0x1, 0x1023b270, 0x7ffd2f60)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0x200
proc 19487 (sh): native num 46 call: sigaction(0x1, 0x7ffd2f60, 0x0)
proc 19487 (sh): native num 46 ret: err = 0, rv = 0x0,0x228
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5554c000,0x3
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x5212c000,0x3
proc 19487 (sh): native num 20 call: getpid()
proc 19487 (sh): native num 20 ret: err = 0, rv = 0x4c1f,0x0
proc 19487 (sh): native num 197 call: mmap(0x0, 0x4000, 0x3, 0x1002, 0xffffffffffffffff, 0x0, 0x0)
proc 19487 (sh): native num 197 ret: err = 0, rv = 0x547fc000,0x3
proc 19487 (sh): native num 304 call: __getcwd(0x547fc010, 0x400)
proc 19487 (sh): native num 304 ret: err = 0, rv = 0x2,0x1
proc 19487 (sh): native num 39 call: getppid()
proc 19487 (sh): native num 39 ret: err = 0, rv = 0x1,0x1


Trap cause = 11 Frame 0x9800000005df7da8
Trap PC 0xffffffff8112c050 RA 0xffffffff811179ec fault 0x100c0c28
0xffffffff8112bf80 (0,9800000005df4000,9800000005df4000,1000002c) ra 0xffffffff811179ec sp 0x9800000005df7f00, sz 0
0xffffffff811179e0 (0,9800000005df4000,9800000005df4000,1000002c) ra 0x0 sp 0x9800000005df7f00, sz 0
User-level: pid 19487
stopped on non ddb fault
Stopped at 0xffffffff8112c050: lwc1 f0,320(a1)

1 comment:

  1. Hmm... Thank you for this interesting fact. Here is the Sam-Sec company that offers video surveillance. Check it sometimes!

    ReplyDelete