Re: memory barrier in user space
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Apr 2008 09:49:32 +0200
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.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- Follow-Ups:
- Re: memory barrier in user space
- From: Måns Rullgård
- Re: memory barrier in user space
- References:
- memory barrier in user space
- From: mcharon
- memory barrier in user space
- Prev by Date: memory barrier in user space
- Next by Date: Re: memory barrier in user space
- Previous by thread: memory barrier in user space
- Next by thread: Re: memory barrier in user space
- Index(es):
Relevant Pages
|