forked from KolibriOS/kolibrios
a03882245a
git-svn-id: svn://kolibrios.org@8327 a494cfbc-eb01-0410-851d-a64ba20cac60
17 lines
345 B
C
Executable File
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);
|
|
}
|