mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-09 02:51:21 +00:00
Rework type usage in Trusted Firmware
This patch reworks type usage in generic code, drivers and ARM platform files to make it more portable. The major changes done with respect to type usage are as listed below: * Use uintptr_t for storing address instead of uint64_t or unsigned long. * Review usage of unsigned long as it can no longer be assumed to be 64 bit. * Use u_register_t for register values whose width varies depending on whether AArch64 or AArch32. * Use generic C types where-ever possible. In addition to the above changes, this patch also modifies format specifiers in print invocations so that they are AArch64/AArch32 agnostic. Only files related to upcoming feature development have been reworked. Change-Id: I9f8c78347c5a52ba7027ff389791f1dad63ee5f8
This commit is contained in:
parent
aadb1350ee
commit
4c0d039076
35 changed files with 214 additions and 208 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
|
||||
* Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
|
@ -104,7 +104,7 @@ typedef enum rn_types {
|
|||
#define WAIT_FOR_DOMAIN_CTRL_OP_COMPLETION(region_id, stat_reg_offset, \
|
||||
op_reg_offset, rn_id_map) \
|
||||
{ \
|
||||
uint64_t status_reg; \
|
||||
unsigned long long status_reg; \
|
||||
do { \
|
||||
status_reg = ccn_reg_read((ccn_plat_desc->periphbase), \
|
||||
(region_id), \
|
||||
|
@ -208,7 +208,7 @@ typedef enum rn_types {
|
|||
/*
|
||||
* Helper function to return number of set bits in bitmap
|
||||
*/
|
||||
static inline unsigned int count_set_bits(uint64_t bitmap)
|
||||
static inline unsigned int count_set_bits(unsigned long long bitmap)
|
||||
{
|
||||
unsigned int count = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue