Commit e76458c2 authored by John P. Willis's avatar John P. Willis
Browse files

Attempt to fix segfault on ARM CPUs

parent 1698ee43
Pipeline #746 passed with stage
in 1 minute and 30 seconds
......@@ -88,7 +88,12 @@ short shm_init(const size_t seg_size)
shm_config->seg_id = shmget (shm_config->key, shm_config->segsiz, 0644 | IPC_CREAT);
if (shm_config->seg_id == -1) return SHMS_GET_ERR;
#if !defined(__arm__)
shm_config->dta = shmat (shm_config->seg_id, NULL, 0);
#else
shm_config->dta = shmat (shm_config->seg_id, (void *) 0x1000000, 0);
#endif
if (shm_config->dta == (void *) -1) return SHMS_ATTACH_ERR;
/* view the first sizeof (shm_hdr_t) bytes of the data area as an shm_hdr_t */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment