*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@1054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b249cc5e26
commit
7900837853
1 changed files with 2 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ void *wad_page_alloc(int npages) {
|
|||
void *m;
|
||||
m = mmap(NULL, npages*pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE, devzero, 0);
|
||||
if (((long) m) == -1) return 0;
|
||||
/* printf("page_alloc: %x - %x\n", m, ((char *) m) + npages*pagesize); */
|
||||
return m;
|
||||
}
|
||||
|
||||
|
|
@ -113,7 +114,7 @@ void *wad_malloc(int nbytes) {
|
|||
wm = (WadMemory *) wad_page_alloc(npalloc);
|
||||
if (!wm) return 0;
|
||||
wm->npages = npalloc;
|
||||
wm->last = sizeof(WadMemory);
|
||||
wm->last = sizeof(WadMemory) + 8;
|
||||
wm->next = current;
|
||||
current = wm;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue