CFLAGS += -g
# -save-temps -fverbose-asm
ASFLAGS += -g -Wa,--gdwarf-2
+else
+CFLAGS += -DNDEBUG=1
endif
******************************************************************************/
void bl1_main(void)
{
+#if DEBUG
unsigned long sctlr_el3 = read_sctlr();
+#endif
unsigned long bl2_base;
unsigned int load_type = TOP_LOAD, spsr;
meminfo *bl1_tzram_layout;
unsigned int load_type,
unsigned long fixed_addr)
{
- unsigned long temp_image_base, image_base;
- long offset;
+ unsigned long temp_image_base = 0;
+ unsigned long image_base = 0;
+ long offset = 0;
int image_flen;
/* Find the size of the image */
#include <psci.h>
#include <psci_private.h>
#include <runtime_svc.h>
+#include "debug.h"
/*******************************************************************************
* Arrays that contains information needs to resume a cpu's execution when woken
start_afflvl,
end_afflvl,
mpidr_nodes);
- assert (rc == PSCI_E_SUCCESS);
+ if (rc != PSCI_E_SUCCESS)
+ panic();
/*
* This function acquires the lock corresponding to each affinity
end_afflvl,
pon_handlers,
mpidr);
- assert (rc == PSCI_E_SUCCESS);
+ if (rc != PSCI_E_SUCCESS)
+ panic();
/*
* This loop releases the lock corresponding to each affinity level
******************************************************************************/
void psci_setup(unsigned long mpidr)
{
- int afflvl, affmap_idx, rc, max_afflvl;
+ int afflvl, affmap_idx, max_afflvl;
aff_map_node *node;
/* Initialize psci's internal state */
psci_set_state(node, PSCI_STATE_ON);
}
- rc = platform_setup_pm(&psci_plat_pm_ops);
- assert(rc == 0);
+ platform_setup_pm(&psci_plat_pm_ops);
assert(psci_plat_pm_ops);
return;
#include <bl_common.h>
/* Included only for error codes */
#include <psci.h>
+#include "debug.h"
unsigned char platform_normal_stacks[PLATFORM_STACK_SIZE][PLATFORM_CORE_COUNT]
__attribute__ ((aligned(PLATFORM_CACHE_LINE_SIZE),
bld = (sys_id >> SYS_ID_BLD_SHIFT) & SYS_ID_BLD_MASK;
arch = (sys_id >> SYS_ID_ARCH_SHIFT) & SYS_ID_ARCH_MASK;
- assert(rev == REV_FVP);
- assert(arch == ARCH_MODEL);
+ if ((rev != REV_FVP) || (arch != ARCH_MODEL))
+ panic();
/*
* The build field in the SYS_ID tells which variant of the GIC