aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2009-04-30 21:39:45 +0000
committerKyle McMartin <[email protected]>2009-07-03 03:34:07 +0000
commit7d17e2763129ea307702fcdc91f6e9d114b65c2d (patch)
tree7941bcdc08cce96bbd31b718a23d1c9431dde2b1 /net/lapb/lapb_iface.c
parent4fb11781a044552dded5342e1a78cf92a74683db (diff)
parisc: fix ldcw inline assembler
There are two reasons to expose the memory *a in the asm: 1) To prevent the compiler from discarding a preceeding write to *a, and 2) to prevent it from caching *a in a register over the asm. The change has had a few days testing with a SMP build of 2.6.22.19 running on a rp3440. This patch is about the correctness of the __ldcw() macro itself. The use of the macro should be confined to small inline functions to try to limit the effect of clobbering memory on GCC's optimization of loads and stores. Signed-off-by: Dave Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Kyle McMartin <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions