diff options
author | Dan Handley <dan.handley@arm.com> | 2014-04-23 13:47:06 +0100 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-05-06 17:55:38 +0100 |
commit | 625de1d4f04b30383354bee944d0a7ca3dba1e67 (patch) | |
tree | 3a9c8494e30f1d7475dbc69edef172a37f036594 /plat/fvp/platform.h | |
parent | 408c37682a0233c8c4fa88700b603f0b09d6361f (diff) |
Remove variables from .data section
Update code base to remove variables from the .data section,
mainly by using const static data where possible and adding
the const specifier as required. Most changes are to the IO
subsystem, including the framework APIs. The FVP power
management code is also affected.
Delay initialization of the global static variable,
next_image_type in bl31_main.c, until it is realy needed.
Doing this moves the variable from the .data to the .bss
section.
Also review the IO interface for inconsistencies, using
uintptr_t where possible instead of void *. Remove the
io_handle and io_dev_handle typedefs, which were
unnecessary, replacing instances with uintptr_t.
Fixes ARM-software/tf-issues#107.
Change-Id: I085a62197c82410b566e4698e5590063563ed304
Diffstat (limited to 'plat/fvp/platform.h')
-rw-r--r-- | plat/fvp/platform.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plat/fvp/platform.h b/plat/fvp/platform.h index 1ffdc982..1f4e4324 100644 --- a/plat/fvp/platform.h +++ b/plat/fvp/platform.h @@ -349,7 +349,6 @@ typedef volatile struct mailbox { ******************************************************************************/ struct plat_pm_ops; struct meminfo; -struct io_dev_info; /******************************************************************************* * Function and variable prototypes @@ -370,7 +369,7 @@ extern unsigned long warm_boot_entrypoint; extern void bl1_plat_arch_setup(void); extern void bl2_plat_arch_setup(void); extern void bl31_plat_arch_setup(void); -extern int platform_setup_pm(struct plat_pm_ops **); +extern int platform_setup_pm(const struct plat_pm_ops **); extern unsigned int platform_get_core_pos(unsigned long mpidr); extern void disable_mmu(void); extern void enable_mmu(void); @@ -401,7 +400,7 @@ extern unsigned int plat_get_aff_state(unsigned int, unsigned long); /* Declarations for plat_io_storage.c */ extern void io_setup(void); extern int plat_get_image_source(const char *image_name, - struct io_dev_info **dev_handle, void **image_spec); + uintptr_t *dev_handle, uintptr_t *image_spec); /* Declarations for plat_security.c */ extern void plat_security_setup(void); |