Actually remove allocmem and freemem sources from the library.
This commit is contained in:
parent
e9aabcf2f8
commit
3ea083b8d4
4 changed files with 0 additions and 46 deletions
|
@ -1,16 +0,0 @@
|
|||
#include <lib.h>
|
||||
#define allocmem _allocmem
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
PUBLIC int allocmem(size, base)
|
||||
phys_bytes size; /* size of mem chunk requested */
|
||||
phys_bytes *base; /* return base address */
|
||||
{
|
||||
message m;
|
||||
m.m4_l1 = size;
|
||||
if (_syscall(MM, ALLOCMEM, &m) < 0) return(-1);
|
||||
*base = m.m4_l2;
|
||||
return(0);
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
#include <lib.h>
|
||||
#define freemem _freemem
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
PUBLIC int freemem(size, base)
|
||||
phys_bytes size; /* size of mem chunk requested */
|
||||
phys_bytes base; /* base address of mem chunk */
|
||||
{
|
||||
message m;
|
||||
m.m4_l1 = size;
|
||||
m.m4_l2 = base;
|
||||
if (_syscall(MM, FREEMEM, &m) < 0) return(-1);
|
||||
return(0);
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
.sect .text
|
||||
.extern __allocmem
|
||||
.define _allocmem
|
||||
.align 2
|
||||
|
||||
_allocmem:
|
||||
jmp __allocmem
|
|
@ -1,7 +0,0 @@
|
|||
.sect .text
|
||||
.extern __freemem
|
||||
.define _freemem
|
||||
.align 2
|
||||
|
||||
_freemem:
|
||||
jmp __freemem
|
Loading…
Reference in a new issue