Re: memory barrier in user space
- From: Måns Rullgård <mans@xxxxxxxxx>
- Date: Tue, 22 Apr 2008 09:21:56 +0100
Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> writes:
mcharon@xxxxxxxxx wrote:
i have a user space driver that's accessing and initializing the
hardware.
in the kernel driver, i can call barrier() but in the user space,
how can i execute memory barrier?
i am running on MIPS and powerPC.
thank you in advance.
IIRC the barrier() macro just emitted a single instruction. You might
want to look at the gcc info and the stuff about asm() in particular.
On MIPS the instruction is SYNC, and on PowerPC it is EIEIO.
--
Måns Rullgård
mans@xxxxxxxxx
.
- References:
- memory barrier in user space
- From: mcharon
- Re: memory barrier in user space
- From: Josef Moellers
- memory barrier in user space
- Prev by Date: Re: memory barrier in user space
- Next by Date: char device driver + script
- Previous by thread: Re: memory barrier in user space
- Next by thread: char device driver + script
- Index(es):
Relevant Pages
|