summaryrefslogtreecommitdiff
path: root/shell/ash_ptr_hack.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-27 18:41:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-27 18:41:59 +0000
commit574f2f43948bb21d6e4187936ba5a5afccba25f6 (patch)
tree0b39aca564149e5ad30b3cc791228655ff1b1827 /shell/ash_ptr_hack.c
parentfe66a0eca1bfeae0abc0fc1e7d3709f271e05e82 (diff)
downloadbusybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.gz
busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.tar.bz2
busybox-w32-574f2f43948bb21d6e4187936ba5a5afccba25f6.zip
*: add optimization barrier to all "G trick" locations
Diffstat (limited to 'shell/ash_ptr_hack.c')
-rw-r--r--shell/ash_ptr_hack.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/ash_ptr_hack.c b/shell/ash_ptr_hack.c
new file mode 100644
index 000000000..490b73b6d
--- /dev/null
+++ b/shell/ash_ptr_hack.c
@@ -0,0 +1,16 @@
1/* vi: set sw=4 ts=4: */
2/*
3 * Copyright (C) 2008 by Denys Vlasenko <vda.linux@googlemail.com>
4 *
5 * Licensed under GPLv2, see file LICENSE in this tarball for details.
6 */
7
8/* We cheat here. They are declared as const ptr in ash.c,
9 * but here we make them live in R/W memory */
10struct globals_misc;
11struct globals_memstack;
12struct globals_var;
13
14struct globals_misc *ash_ptr_to_globals_misc;
15struct globals_memstack *ash_ptr_to_globals_memstack;
16struct globals_var *ash_ptr_to_globals_var;