summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-09-12 14:18:49 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-09-29 20:20:50 +0000
commitff4d6be9f99c34242140e965f1ed82240d67198c (patch)
tree0a4cb2ea2539d4413eb5e1ec39d35a7dee95724d /src/include
parent49c4584669cb854a1108b4ad9ac286aa607245c5 (diff)
downloadcoreboot-ff4d6be9f99c34242140e965f1ed82240d67198c.tar.gz
coreboot-ff4d6be9f99c34242140e965f1ed82240d67198c.tar.bz2
coreboot-ff4d6be9f99c34242140e965f1ed82240d67198c.zip
*/include/cpu: use unsigned int for number of address bits
The number of physical address bits and reserved address bits shouldn't ever be negative, so change the return type of cpu_phys_address_size, get_reserved_phys_addr_bits, and get_tme_keyid_bits from int to unsigned int. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I9e67db6bf0c38f743b50e7273449cc028de13a8c Reviewed-on: https://review.coreboot.org/c/coreboot/+/78072 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cpu/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/cpu/cpu.h b/src/include/cpu/cpu.h
index fc662eec9eaa..9783976191d4 100644
--- a/src/include/cpu/cpu.h
+++ b/src/include/cpu/cpu.h
@@ -9,7 +9,7 @@
void cpu_initialize(void);
uintptr_t cpu_get_lapic_addr(void);
struct bus;
-int cpu_phys_address_size(void);
+unsigned int cpu_phys_address_size(void);
#if ENV_RAMSTAGE
#define __cpu_driver __attribute__((used, __section__(".rodata.cpu_driver")))