mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
LibDeviceTree: Make the dump more akin to the original fdtdump
This also makes it possible to compile the library in the Kernel
This commit is contained in:
parent
38cb5444d9
commit
d6bb5579ad
2 changed files with 74 additions and 26 deletions
|
@ -11,6 +11,12 @@
|
|||
#include <AK/StringView.h>
|
||||
#include <LibDeviceTree/FlattenedDeviceTree.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <Kernel/Library/StdLib.h>
|
||||
#else
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
||||
namespace DeviceTree {
|
||||
|
||||
static ErrorOr<StringView> read_string_view(ReadonlyBytes bytes, StringView error_string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue