arch: convert to using newly introduced integer sized types
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. There are few places we dont convert over to the new types because of compatiability with ext/HALs or for ease of transition at this point. Fixup a few of the PRI formatters so we build with newlib. Jira: ZEP-2051 Change-Id: I7d2d3697cad04f20aaa8f6e77228f502cd9c8286 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
99a7168b08
commit
bf53ebf2c8
85 changed files with 965 additions and 966 deletions
|
@ -50,15 +50,14 @@ void _FaultDump(const NANO_ESF *esf, int fault)
|
|||
ARG_UNUSED(fault);
|
||||
|
||||
#ifdef CONFIG_PRINTK
|
||||
uint32_t exc_addr = _arc_v2_aux_reg_read(_ARC_V2_EFA);
|
||||
uint32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
|
||||
u32_t exc_addr = _arc_v2_aux_reg_read(_ARC_V2_EFA);
|
||||
u32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
|
||||
|
||||
PR_EXC("Exception vector: 0x%" PRIx32 ", cause code: 0x%" PRIx32
|
||||
", parameter 0x%" PRIx32 "\n",
|
||||
PR_EXC("Exception vector: 0x%x, cause code: 0x%x, parameter 0x%xn",
|
||||
_ARC_V2_ECR_VECTOR(ecr),
|
||||
_ARC_V2_ECR_CODE(ecr),
|
||||
_ARC_V2_ECR_PARAMETER(ecr));
|
||||
PR_EXC("Address 0x%" PRIx32 "\n", exc_addr);
|
||||
PR_EXC("Address 0x%x\n", exc_addr);
|
||||
#endif
|
||||
}
|
||||
#endif /* CONFIG_FAULT_DUMP */
|
||||
|
@ -75,7 +74,7 @@ void _FaultDump(const NANO_ESF *esf, int fault)
|
|||
*/
|
||||
void _Fault(void)
|
||||
{
|
||||
uint32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
|
||||
u32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
|
||||
|
||||
FAULT_DUMP(&_default_esf, ecr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue