Go to the source code of this file.
Functions | |
void * | pmac_get (char *name, void *base, long int size) |
|
Definition at line 2 of file peek.c. 00003 { 00004 #ifdef DEBUG_PMAC 00005 return (void *) 0; 00006 #else 00007 void *pmac; 00008 00009 /* remove any previous defs of phys mem */ 00010 smem_remove(name); 00011 00012 if ((pmac = (void *) 00013 smem_create(name, (char *) base, size, SM_READ | SM_WRITE)) == NULL) 00014 { 00015 perror("can't get physical memory"); 00016 return (void *) 0; 00017 } 00018 00019 return pmac; 00020 #endif 00021 } |