Skip to contentSkip to conversation

shm problem

Qemu-devel Alexander Graf 1 participant 1 message Jun 22, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

when using mmap with qemu-i386 on x86_64 it's quite simple to get 32-bit pointers back (using the MAP_32BIT flag, thanks to Kirill for the patch).

I'm currently in the need for shared memory though, so I need shmat() to return something within the lower 31 Bits as well.

shmget(0x56a4d5, 488, IPC_CREAT|0660) = 11075627
shmat(11075627, 0, 0) = 0x2b4ceb29e000

Does anyone have an idea how to get around this and force shmat to return something a 32-bit target can handle? In the end it only calls mmap too...

Thanks,

Alex