Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138030474
D20059.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20059.diff
View Options
Index: head/stand/efi/loader/autoload.c
===================================================================
--- head/stand/efi/loader/autoload.c
+++ head/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: head/stand/fdt/fdt_loader_cmd.c
===================================================================
--- head/stand/fdt/fdt_loader_cmd.c
+++ head/stand/fdt/fdt_loader_cmd.c
@@ -510,6 +510,16 @@
}
int
+fdt_is_setup(void)
+{
+
+ if (fdtp != NULL)
+ return (1);
+
+ return (0);
+}
+
+int
fdt_setup_fdtp()
{
struct preloaded_file *bfp;
Index: head/stand/fdt/fdt_platform.h
===================================================================
--- head/stand/fdt/fdt_platform.h
+++ head/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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 8:21 AM (6 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26323442
Default Alt Text
D20059.diff (1 KB)
Attached To
Mode
D20059: loader: fdt: Add fdt_is_setup function
Attached
Detach File
Event Timeline
Log In to Comment