Last change
on this file since 380 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
404 bytes
|
Rev | Line | |
---|
[352] | 1 | #include <sys/mman.h>
|
---|
| 2 | #include "syscall.h"
|
---|
| 3 | #include "libc.h"
|
---|
| 4 |
|
---|
| 5 | #ifndef __c2__
|
---|
| 6 | static void dummy(void) { }
|
---|
| 7 | weak_alias(dummy, __vm_wait);
|
---|
| 8 | #else
|
---|
| 9 | extern void __vm_wait(void);
|
---|
| 10 | #endif
|
---|
| 11 |
|
---|
| 12 | int __munmap(void *start, size_t len)
|
---|
| 13 | {
|
---|
| 14 | __vm_wait();
|
---|
| 15 | return syscall(SYS_munmap, start, len);
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | #ifndef __c2__
|
---|
| 19 | weak_alias(__munmap, munmap);
|
---|
| 20 | #else
|
---|
| 21 | int munmap(void *start, size_t len)
|
---|
| 22 | {
|
---|
| 23 | return __munmap(start, len);
|
---|
| 24 | }
|
---|
| 25 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.