summaryrefslogtreecommitdiff
path: root/include/sbi_utils/fdt/fdt_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sbi_utils/fdt/fdt_helper.h')
-rw-r--r--include/sbi_utils/fdt/fdt_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h
index 09f3095..39d7f3a 100644
--- a/include/sbi_utils/fdt/fdt_helper.h
+++ b/include/sbi_utils/fdt/fdt_helper.h
@@ -11,7 +11,7 @@
#define __FDT_HELPER_H__
#include <sbi/sbi_types.h>
-#include <sbi/sbi_scratch.h>
+#include <sbi/sbi_domain.h>
struct fdt_match {
const char *compatible;
@@ -109,7 +109,7 @@ int fdt_parse_compat_addr(void *fdt, uint64_t *addr,
static inline void *fdt_get_address(void)
{
- return sbi_scratch_thishart_arg1_ptr();
+ return (void *)root.next_arg1;
}
#endif /* __FDT_HELPER_H__ */