File:  [DVB] / dietlibc / i386 / __munmap_and_exit.S
Revision 1.1: download - view: text, annotated - select for diffs
Wed Feb 24 11:18:07 2016 UTC (8 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
i386: add __munmap_and_exit, update clone; test/thread.c now works.

#include "syscalls.h"

.text
.global __munmap_and_exit
#ifdef __PIE__
.hidden __munmap_and_exit
#endif
.type __munmap_and_exit,@function
__munmap_and_exit:
  mov $__NR_munmap,%eax
  mov 4(%esp),%ebx
  mov 8(%esp),%ecx
  int $0x80
  mov $__NR_exit,%eax
  xor %ebx,%ebx
  int $0x80
.Lhere:
.size __munmap_and_exit, .Lhere-__munmap_and_exit

LinuxTV legacy CVS <linuxtv.org/cvs>