kolibrios-fun/contrib/other/uarm/callout_RAM.c
maxcodehack a03882245a Upload uARM emulator (linux4kolibri)
git-svn-id: svn://kolibrios.org@8327 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-05 14:28:30 +00:00

17 lines
345 B
C
Executable File

#include "mem.h"
#include "callout_RAM.h"
Boolean coRamInit(CalloutRam* ram, ArmMem* mem, UInt32 adr, UInt32 sz, ArmMemAccessF* coF){
ram->adr = adr;
ram->sz = sz;
return memRegionAdd(mem, adr, sz, (void*)coF, ram);
}
Boolean coRamDeinit(CalloutRam* ram, ArmMem* mem){
return memRegionDel(mem, ram->adr, ram->sz);
}