《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
241 B

  1. .text
  2. .globl _start
  3. _start:
  4. # set ebp for backtrace
  5. movl $0x0, %ebp
  6. # move down the esp register
  7. # since it may cause page fault in backtrace
  8. subl $0x20, %esp
  9. # call user-program function
  10. call umain
  11. 1: jmp 1b