revert ae2f9301c01a20f16ae764c518916de9b3ae0ddf
revert Refactor fdt_init in arch/aarch64
This commit is contained in:
parent
99489924c6
commit
ae5570ba77
@ -22,7 +22,7 @@
|
|||||||
fdt_header* fdt;
|
fdt_header* fdt;
|
||||||
|
|
||||||
void fdt_init() {
|
void fdt_init() {
|
||||||
fdt = *(uint32_t*)(0x1337);
|
fdt = (fdt_header*)(*(uint32_t*)0x1337);
|
||||||
}
|
}
|
||||||
|
|
||||||
fdt_prop fdt_get_prop(uint32_t* addr) {
|
fdt_prop fdt_get_prop(uint32_t* addr) {
|
||||||
@ -97,4 +97,4 @@ uint32_t* fdt_get_addr(const char* path) {
|
|||||||
struct_ptr++;
|
struct_ptr++;
|
||||||
}
|
}
|
||||||
return lastaddr;
|
return lastaddr;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user