*: add optimization barrier to all "G trick" locations
This commit is contained in:
@ -309,7 +309,7 @@ struct globals {
|
||||
#define MBRbuffer (G.MBRbuffer)
|
||||
#define ptes (G.ptes)
|
||||
#define INIT_G() do { \
|
||||
PTR_TO_GLOBALS = xzalloc(sizeof(G)); \
|
||||
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
||||
sector_size = DEFAULT_SECTOR_SIZE; \
|
||||
sector_offset = 1; \
|
||||
g_partitions = 4; \
|
||||
|
@ -190,7 +190,7 @@ struct globals {
|
||||
#define check_file_blk (G.check_file_blk )
|
||||
#define current_name (G.current_name )
|
||||
#define INIT_G() do { \
|
||||
PTR_TO_GLOBALS = xzalloc(sizeof(G)); \
|
||||
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
||||
dirsize = 16; \
|
||||
namelen = 14; \
|
||||
current_name[0] = '/'; \
|
||||
|
@ -122,7 +122,7 @@ struct globals {
|
||||
};
|
||||
#define G (*ptr_to_globals)
|
||||
#define INIT_G() do { \
|
||||
PTR_TO_GLOBALS = xzalloc(sizeof(G)); \
|
||||
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
||||
} while (0)
|
||||
|
||||
static ALWAYS_INLINE unsigned div_roundup(unsigned size, unsigned n)
|
||||
|
@ -28,9 +28,7 @@ struct globals {
|
||||
struct termios new_settings;
|
||||
};
|
||||
#define G (*(struct globals*)bb_common_bufsiz1)
|
||||
//#define G (*ptr_to_globals)
|
||||
#define INIT_G() ((void)0)
|
||||
//#define INIT_G() PTR_TO_GLOBALS = xzalloc(sizeof(G))
|
||||
#define initial_settings (G.initial_settings)
|
||||
#define new_settings (G.new_settings )
|
||||
#define cin_fileno (G.cin_fileno )
|
||||
|
@ -25,7 +25,7 @@ struct globals {
|
||||
#define tt (G.tt )
|
||||
#define fname (G.fname )
|
||||
#define INIT_G() do { \
|
||||
PTR_TO_GLOBALS = xzalloc(sizeof(G)); \
|
||||
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
||||
fname = "typescript"; \
|
||||
} while (0)
|
||||
|
||||
|
Reference in New Issue
Block a user