Merge pull request #1335 from JoelHutton/jh/cleanup_void_pointers
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Thu, 29 Mar 2018 08:59:52 +0000 (09:59 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Mar 2018 08:59:52 +0000 (09:59 +0100)
Clean usage of void pointers to access symbols

1  2 
plat/hisilicon/hikey/hikey_bl1_setup.c

index b19de0530af4a53f0f8584d1ce2e6c7aef97906e,9ede1dbc7fd761a8ad032f2211f0ac874f22e266..28ad9df224057544f8a61dbcebc6d8222f909f9d
  #include <tbbr/tbbr_img_desc.h>
  
  #include "../../bl1/bl1_private.h"
 -#include "hikey_def.h"
  #include "hikey_private.h"
  
- /*
-  * Declarations of linker defined symbols which will help us find the layout
-  * of trusted RAM
-  */
- extern unsigned long __COHERENT_RAM_START__;
- extern unsigned long __COHERENT_RAM_END__;
- /*
-  * The next 2 constants identify the extents of the coherent memory region.
-  * These addresses are used by the MMU setup code and therefore they must be
-  * page-aligned.  It is the responsibility of the linker script to ensure that
-  * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to
-  * page-aligned addresses.
-  */
- #define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__)
- #define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__)
  /* Data structure which holds the extents of the trusted RAM for BL1 */
  static meminfo_t bl1_tzram_layout;