Dynamic kernel command-line - arm
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Alon Bar-Lev
Quoted 10 lines · Russell King
Quoted 1 line · Bernhard Walle
2. Set
command_lineas__initdata.You can't.
Review
Quoted 2 lines
(quoted diff) +1
-1-static char command_line[COMMAND_LINE_SIZE]; +static char __initdata command_line[COMMAND_LINE_SIZE];Uninitialised data is placed in the BSS. Adding
__initdatato BSS data causes grief.There are many places in kernel that uses
__initdatafor uninitialized variables.
Quoted 6 lines
For example:
static int
__initdatais_chipset_set[MAX_HWIFS];So all these current places are wrong?
If I initialize the data will it be OK.
objdump -t vmlinux |grep -3 is_chipset_set suggests that it's placed into .init.data here, not into .bss.
Signature · 4 lines
Top 100 things you don't want the sysadmin to say: 92. What software license? Friß, Spammer: [email protected] [email protected]
Quoted 18 lines · Bodo Eggert
Quoted 16 lines · Alon Bar-Lev
Quoted 10 lines · Russell King
Quoted 1 line · Bernhard Walle
2. Set
command_lineas__initdata.You can't.
Review
Quoted 2 lines
(quoted diff) +1
-1-static char command_line[COMMAND_LINE_SIZE]; +static char __initdata command_line[COMMAND_LINE_SIZE];Uninitialised data is placed in the BSS. Adding
__initdatato BSS data causes grief.There are many places in kernel that uses
__initdatafor uninitialized variables.For example:
Quoted 7 lines
Quoted 4 lines
static int
__initdatais_chipset_set[MAX_HWIFS];So all these current places are wrong?
If I initialize the data will it be OK.objdump -t vmlinux |grep -3
is_chipset_setsuggests that it's placed into .init.data here, not into .bss.
Russell ?