make allocmem accept and return values in bytes, ramdisk expects this.

This commit is contained in:
Ben Gras
2008-11-19 15:40:17 +00:00
parent 51fdce1d36
commit 9b33056d2b
5 changed files with 12 additions and 9 deletions

View File

@@ -6,12 +6,12 @@
/*===========================================================================*
* vm_allocmem *
*===========================================================================*/
PUBLIC int vm_allocmem(phys_clicks clicks, phys_clicks *retmembase)
PUBLIC int vm_allocmem(phys_clicks bytes, phys_clicks *retmembase)
{
message m;
int result;
m.VMAM_CLICKS = clicks;
m.VMAM_BYTES = bytes;
result = _taskcall(VM_PROC_NR, VM_ALLOCMEM, &m);
if(result == OK)
*retmembase = m.VMAM_MEMBASE;