Remove the symlink trick, just publish /dev/mem the regular way.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21243 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2007-05-26 00:31:25 +00:00
parent cd6fd30f63
commit a85d740cc0
+5 -6
View File
@@ -15,8 +15,8 @@
#define DEVMNT "/dev/"
/* symlink to /dev/mem */
#define DO_SYMLINK
/* also publish /dev/mem */
#define PUBLISH_DEV_MEM
static status_t mem_open(const char*, uint32, void**);
static status_t mem_close(void*);
@@ -29,6 +29,9 @@ static area_id mem_map_target(off_t position, size_t len, uint32 protection, voi
static const char* mem_name[] = {
DEVICE_NAME,
#ifdef PUBLISH_DEV_MEM
DRIVER_NAME,
#endif
NULL
};
@@ -47,10 +50,6 @@ int32 api_version = B_CUR_DRIVER_API_VERSION;
status_t
init_hardware(void)
{
#ifdef DO_SYMLINK
/* Unix apps expect /dev/mem */
symlink(DEVMNT DEVICE_NAME, DEVMNT "mem");
#endif
return B_OK;
}