Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 28th, 2013  |  syntax: ASM (NASM)  |  size: 3.23 KB  |  views: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. MacBook-Pro-de-Yann-Sionneau:NetBSD fallen$ cd sys/arch/milkymist/compile/obj/GENERIC/
  2. MacBook-Pro-de-Yann-Sionneau:GENERIC fallen$ /Users/fallen/dev/NetBSD/obj/tooldir.Darwin-10.8.0-i386/bin/lm32--netbsd-gcc -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings --sysroot=/Users/fallen/dev/NetBSD/obj/destdir.milkymist -Dmilkymist -I. -I/Users/fallen/dev/NetBSD/sys/../common/include -I/Users/fallen/dev/NetBSD/sys/arch -I/Users/fallen/dev/NetBSD/sys -nostdinc -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/quad -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/string -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/arch/lm32/string -c /Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S
  3. /Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S: Assembler messages:
  4. /Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S:53: Error: unresolved expression that must be resolved
  5. MacBook-Pro-de-Yann-Sionneau:GENERIC fallen$ /Users/fallen/dev/NetBSD/obj/tooldir.Darwin-10.8.0-i386/bin/lm32--netbsd-gcc -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings --sysroot=/Users/fallen/dev/NetBSD/obj/destdir.milkymist -Dmilkymist -I. -I/Users/fallen/dev/NetBSD/sys/../common/include -I/Users/fallen/dev/NetBSD/sys/arch -I/Users/fallen/dev/NetBSD/sys -nostdinc -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/quad -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/string -I/Users/fallen/dev/NetBSD/sys/lib/libkern/../../../common/lib/libc/arch/lm32/string -E -c /Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S
  6. # 1 "/Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S"
  7. # 1 "<built-in>"
  8. # 1 "<command-line>"
  9. # 1 "/Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S"
  10.  
  11.  
  12.  
  13.  
  14. # 1 "./lm32/asm.h" 1
  15. # 6 "/Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S" 2
  16. # 1 "./assym.h" 1
  17. # 7 "/Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S" 2
  18.  
  19.  
  20. .text ; .align 2 ; .globl suword ; .type suword,@function ; suword:
  21.  
  22.  
  23. .text ; .align 2 ; .globl susword ; .type susword,@function ; susword:
  24.  
  25.  
  26. .text ; .align 2 ; .globl suswintr ; .type suswintr,@function ; suswintr:
  27.  
  28.  
  29. .text ; .align 2 ; .globl subyte ; .type subyte,@function ; subyte:
  30.  
  31.  
  32. .text ; .align 2 ; .globl fuswintr ; .type fuswintr,@function ; fuswintr:
  33.  
  34.  
  35. .text ; .align 2 ; .globl kcopy ; .type kcopy,@function ; kcopy:
  36.  
  37.  
  38. .text ; .align 2 ; .globl setjmp ; .type setjmp,@function ; setjmp:
  39.  
  40.  
  41. .text ; .align 2 ; .globl longjmp ; .type longjmp,@function ; longjmp:
  42. # 46 "/Users/fallen/dev/NetBSD/sys/arch/lm32/lm32/locore_subr.S"
  43. .text ; .align 2 ; .globl cpu_switchto ; .type cpu_switchto,@function ; cpu_switchto:
  44.  addi sp, sp, -16
  45.  sw (sp+0), fp
  46.  sw (sp+4), ra
  47.  sw (sp+8), r11
  48.  sw (sp+12), r12
  49.  ori fp, r0, 16
  50.  addi fp, sp, sp
  51.  
  52.  
  53.  lw r11, (r1+24)
  54.  sw (r11+4), sp
  55.  sw (r11+12), fp
  56.  sw (r11+8), ra
  57.  
  58.  
  59. 1: lw r12, (r2+24)
  60.  lw ra, (r12+8)
  61.  lw fp, (r12+12)
  62.  lw sp, (r12+4)
  63.  
  64.  
  65.  
  66.  mvhi r25, hi(cpu_info_store) ; ori r25, r25, lo(cpu_info_store) ; lw r12, (r25+340)
  67.  
  68.  
  69.  bne r3, r0, 4f
  70.  
  71. 4:
  72.  lw r12, (sp+12)
  73.  lw r11, (sp+8)
  74.  lw ra, (sp+4)
  75.  lw fp, (sp+0)
  76.  addi sp, sp, 16
  77.  ret