mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +03:00
[fdt] Allow for parsing device trees where the length is known in advance
Allow for parsing device trees where an external factor (such as a downloaded image length) determines the maximum length, which must be validated against the length within the device tree header. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -123,6 +123,7 @@ _sbi_start:
|
||||
/* Register device tree */
|
||||
la a0, sysfdt
|
||||
mv a1, s1
|
||||
li a2, -1
|
||||
call fdt_parse
|
||||
|
||||
/* Call main program */
|
||||
|
||||
Reference in New Issue
Block a user