Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2.  
  3. .section .text
  4.  
  5. .global __exit
  6. .global __Exit
  7.  
  8.  
  9. .align 4
  10. __exit:
  11. __Exit:
  12.            movl  4(%esp), %edx     #store exit code
  13.            movl  $68, %eax
  14.            movl  $13, %ebx
  15.            movl  %fs:4, %ecx
  16.            int   $0x40             #destroy stack
  17.  
  18.            movl  $-1, %eax
  19.            int   $0x40             #terminate thread
  20.  
  21.