tfh@meep3 ~/openriscsim/build $ orsim/orsim ../openriscsim/vmlinux.bin Loaded 2775436 bytes from ../openriscsim/vmlinux.bin Linux version 3.13.0-rc7-or1ksim+ (tfh@pixel.skip.org) (gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or32-linux (built 20140512)) ) #14 Thu May 29 19:36:38 BST 2014 CPU: OpenRISC-10 (revision 0) @20 MHz -- dcache disabled -- icache disabled -- dmmu: 64 entries, 1 way(s) -- immu: 64 entries, 1 way(s) -- additional features: -- PIC -- timer setup_memory: Memory: 0x0-0x2000000 Reserved - 0x01fff820-0x000007e0 Setting up paging and PTEs. map_ram: Memory: 0x0-0x2000000 itlb_miss_handler c0002160 dtlb_miss_handler c0002000 OpenRISC Linux -- http://openrisc.net Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4080 Kernel command line: console=uart,mmio,0x90000000,115200 Early serial console at MMIO 0x90000000 (options '115200') bootconsole [uart0] enabled PID hash table entries: 128 (order: -4, 512 bytes) Dentry cache hash table entries: 4096 (order: 1, 16384 bytes) Inode-cache hash table entries: 2048 (order: 0, 8192 bytes) Sorting __ex_table... Memory: 29752K/32768K available (1298K kernel code, 91K rwdata, 128K rodata, 1184K init, 49K bss, 3016K reserved) mem_init_done ........................................... NR_IRQS:32 nr_irqs:32 0 40.00 BogoMIPS (lpj=200000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 devtmpfs: initialized Switched to clocksource openrisc_timer Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled 90000000.serial: ttyS0 at MMIO 0x90000000 (irq = 2, base_baud = 1250000) is a 16550A console [ttyS0] enabled console [ttyS0] enabled bootconsole [uart0] disabled bootconsole [uart0] disabled Freeing unused kernel memory: 1184K (c017e000 - c02a6000) init started: BusyBox v1.22.1 (2014-05-21 22:58:56 BST) BusyBox v1.22.1 (2014-05-21 22:58:56 BST) built-in shell (ash) Enter 'help' for a list of built-in commands. root@browser:/# uname -a Linux browser 3.13.0-rc7-or1ksim+ #14 Thu May 29 19:36:38 BST 2014 openrisc GNU/Linux root@browser:/# free -m total used free shared buffers Mem: 30 1 28 0 0 -/+ buffers: 1 28 Swap: 0 0 0 root@browser:/# ls -al / total 8 drwxrwxrwt 13 root root 300 Jan 1 00:00 . drwxrwxrwt 13 root root 300 Jan 1 00:00 .. -rw------- 1 root root 26 Jan 1 00:00 .ash_history drwxrwxr-x 2 root root 1680 May 29 2014 bin drwxr-xr-x 2 root root 380 Jan 1 00:00 dev drwxrwxr-x 3 root root 200 May 29 2014 etc drwxr-xr-x 2 root root 40 May 29 2014 home lrwxrwxrwx 1 root root 9 May 29 2014 init -> sbin/init drwxr-xr-x 2 root root 40 May 29 2014 mnt dr-xr-xr-x 25 root root 0 Jan 1 00:00 proc drwxr-xr-x 2 root root 40 Jan 1 00:00 root drwxrwxr-x 2 root root 1040 May 29 2014 sbin dr-xr-xr-x 10 root root 0 Jan 1 00:00 sys drwxrwxr-x 4 root root 80 May 29 2014 usr drwxr-xr-x 3 root root 60 Jan 1 00:00 var root@browser:/# poweroff The system is going down NOW! Sent SIGTERM to all processes Sent SIGKILL to all processes Requesting system poweroff reboot: Power down tfh@meep3 ~/openriscsim/build $ tfh@meep3 ~/openriscsim/openriscsim $ wc *.cc *.h | sort -k1,1 -n 12 22 195 test_main.cc 23 47 380 ram_test.cc 27 55 491 mmu_test.cc 32 62 545 emscripten.cc 34 76 665 bitwise.h 35 66 641 system.h 39 60 624 bus.h 42 110 1028 ram.h 47 111 1075 bus_device.h 54 115 1380 exception.h 56 125 905 bus.cc 58 160 1574 types.h 62 161 1418 uart.h 76 194 1708 main.cc 77 145 1303 system.cc 90 218 2088 mmu.h 115 328 2522 ram.cc 148 311 2644 uart.cc 166 713 4835 assembler.h 173 732 5321 cpu.h 337 892 7533 mmu.cc 474 1794 12586 assembler.cc 867 3304 24661 cpu.cc 989 2268 21442 cpu_test.cc 4033 12069 97564 total