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:
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
#define DEVMNT "/dev/"
|
#define DEVMNT "/dev/"
|
||||||
|
|
||||||
/* symlink to /dev/mem */
|
/* also publish /dev/mem */
|
||||||
#define DO_SYMLINK
|
#define PUBLISH_DEV_MEM
|
||||||
|
|
||||||
static status_t mem_open(const char*, uint32, void**);
|
static status_t mem_open(const char*, uint32, void**);
|
||||||
static status_t mem_close(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[] = {
|
static const char* mem_name[] = {
|
||||||
DEVICE_NAME,
|
DEVICE_NAME,
|
||||||
|
#ifdef PUBLISH_DEV_MEM
|
||||||
|
DRIVER_NAME,
|
||||||
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -47,10 +50,6 @@ int32 api_version = B_CUR_DRIVER_API_VERSION;
|
|||||||
status_t
|
status_t
|
||||||
init_hardware(void)
|
init_hardware(void)
|
||||||
{
|
{
|
||||||
#ifdef DO_SYMLINK
|
|
||||||
/* Unix apps expect /dev/mem */
|
|
||||||
symlink(DEVMNT DEVICE_NAME, DEVMNT "mem");
|
|
||||||
#endif
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user