*: add most of the required setup_common_bufsiz() calls
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -143,6 +143,7 @@ struct globals {
|
||||
} FIX_ALIASING;
|
||||
#define G (*(struct globals*)bb_common_bufsiz1)
|
||||
#define INIT_G() do { \
|
||||
setup_common_bufsiz(); \
|
||||
G.log_level = 8; \
|
||||
G.crontab_dir_name = CRONTABS; \
|
||||
} while (0)
|
||||
|
||||
@@ -53,6 +53,7 @@ enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(
|
||||
#define base (G.base )
|
||||
#define stack (G.stack )
|
||||
#define INIT_G() do { \
|
||||
setup_common_bufsiz(); \
|
||||
base = 10; \
|
||||
} while (0)
|
||||
|
||||
|
||||
@@ -432,6 +432,7 @@ struct globals {
|
||||
#define hwif_ctrl (G.hwif_ctrl )
|
||||
#define hwif_irq (G.hwif_irq )
|
||||
#define INIT_G() do { \
|
||||
setup_common_bufsiz(); \
|
||||
BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user