Page MenuHomeFreeBSD

D20059.id56661.diff
No OneTemporary

D20059.id56661.diff

Index: stand/efi/loader/autoload.c
===================================================================
--- stand/efi/loader/autoload.c
+++ stand/efi/loader/autoload.c
@@ -50,7 +50,8 @@
* imply that we're on a platform where FDT is a requirement. If we
* fix this, then the error handling here should be fixed accordingly.
*/
- fdt_setup_fdtp();
+ if (fdt_is_setup() == 0)
+ fdt_setup_fdtp();
#endif
return (0);
}
Index: stand/fdt/fdt_loader_cmd.c
===================================================================
--- stand/fdt/fdt_loader_cmd.c
+++ stand/fdt/fdt_loader_cmd.c
@@ -515,6 +515,16 @@
fdt_overlays_applied = 1;
}
+int
+fdt_is_setup(void)
+{
+
+ if (fdtp != NULL)
+ return (1);
+
+ return (0);
+}
+
int
fdt_setup_fdtp()
{
Index: stand/fdt/fdt_platform.h
===================================================================
--- stand/fdt/fdt_platform.h
+++ stand/fdt/fdt_platform.h
@@ -48,6 +48,7 @@
int fdt_load_dtb_file(const char *);
void fdt_load_dtb_overlays(const char *);
int fdt_setup_fdtp(void);
+int fdt_is_setup(void);
/* The platform library needs to implement these functions */
int fdt_platform_load_dtb(void);

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 23, 11:13 PM (6 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30212095
Default Alt Text
D20059.id56661.diff (1 KB)

Event Timeline