Felix Held has uploaded this change for review.

View Change

include/device/device: fix soft_reserved_ram_resource macro

The soft_reserved_ram_resource expanded to the non-existent
fixed_mem_resource function. Using the existing fixed_mem_resource_kb
function seems to be the correct thing to do here and is also consistent
with the macros above and below.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I6b454175c6530e539aa24dffb771368b0aea6da9
---
M src/include/device/device.h
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/80409/1
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 27ef82a..e17bcef 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -384,7 +384,7 @@
| IORESOURCE_RESERVE)

#define soft_reserved_ram_resource(dev, idx, basek, sizek) \
- fixed_mem_resource(dev, idx, basek, sizek, IORESOURCE_SOFT_RESERVE)
+ fixed_mem_resource_kb(dev, idx, basek, sizek, IORESOURCE_SOFT_RESERVE)

#define bad_ram_resource_kb(dev, idx, basek, sizek) \
reserved_ram_resource_kb((dev), (idx), (basek), (sizek))

To view, visit change 80409. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6b454175c6530e539aa24dffb771368b0aea6da9
Gerrit-Change-Number: 80409
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot@felixheld.de>
Gerrit-MessageType: newchange