nanokernel: move dataCopy() and bssZero() to common code
Used by ARC, ARM, Nios II. x86 has alternate code done in assembly. Linker scripts had some alarming comments about data/BSS overlap, but the beginning of BSS is aligned so this can't happen even if the end of data isn't. The common code doesn't use fake pointer values for the number of words in these sections, don't compute or export them. Change-Id: I4291c2a6d0222d0a3e95c140deae7539ebab3cc3 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
b6fb004354
commit
5b9378ab7e
10 changed files with 81 additions and 193 deletions
|
@ -133,12 +133,10 @@ GDATA(__data_num_words)
|
|||
#include <stdint.h>
|
||||
extern char __bss_start[];
|
||||
extern char __bss_end[];
|
||||
extern int __bss_num_words[];
|
||||
#ifdef CONFIG_XIP
|
||||
extern char __data_rom_start[];
|
||||
extern char __data_ram_start[];
|
||||
extern char __data_ram_end[];
|
||||
extern int __data_num_words[];
|
||||
#endif
|
||||
|
||||
extern char _image_rom_start[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue