summaryrefslogtreecommitdiff
path: root/kernel/bump.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bump.c')
-rw-r--r--kernel/bump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bump.c b/kernel/bump.c
index 369f92f..fd4f25d 100644
--- a/kernel/bump.c
+++ b/kernel/bump.c
@@ -19,8 +19,8 @@ struct mem_info *km_find_memory(struct dt_node *head) {
size_t len = 0;
uint32_t *reg = (uint32_t *)dt_get_prop(head, "reg", &len);
if (reg && len >= 8) {
- uint32_t base = be32_to_cpu(reg[0]);
- uint32_t size = be32_to_cpu(reg[1]);
+ uint32_t base = btohi(reg[0]);
+ uint32_t size = btohi(reg[1]);
struct mem_info *ret = kemalloc(sizeof(struct mem_info));
ret->start = (void*)base;
ret->size = (size_t)size;