source:
trunk/minix/lib/other/_freemem.c@
20
Last change on this file since 20 was 9, checked in by , 14 years ago | |
---|---|
File size: 319 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define freemem _freemem |
3 | #include <unistd.h> |
4 | |
5 | |
6 | PUBLIC int freemem(size, base) |
7 | phys_bytes size; /* size of mem chunk requested */ |
8 | phys_bytes base; /* base address of mem chunk */ |
9 | { |
10 | message m; |
11 | m.m4_l1 = size; |
12 | m.m4_l2 = base; |
13 | if (_syscall(MM, FREEMEM, &m) < 0) return(-1); |
14 | return(0); |
15 | } |
16 |
Note:
See TracBrowser
for help on using the repository browser.