diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-03-27 15:15:52 +0900 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 12:12:29 +1100 |
commit | 7fcf8208b8a98f65ce938a64fab674add3656f27 (patch) | |
tree | ca512ab8387d896c469382e7c34e0ffb188badc5 /tests/testdata.h | |
parent | ae795b2db7a43f8f076a8b688761244ed0f93128 (diff) | |
download | dtc-7fcf8208b8a98f65ce938a64fab674add3656f27.zip dtc-7fcf8208b8a98f65ce938a64fab674add3656f27.tar.gz dtc-7fcf8208b8a98f65ce938a64fab674add3656f27.tar.bz2 |
libfdt: add fdt_append_addrrange()
This function will append an address range property using parent node's
"#address-cells" and "#size-cells" properties.
It will be used in implementing kdump with kexec_file_load system call
at linux kernel for arm64 once it is merged into kernel tree.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Message-Id: <20190327061552.17170-2-takahiro.akashi@linaro.org>
[dwg: Correct a SEGV error in the testcase]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/testdata.h')
-rw-r--r-- | tests/testdata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testdata.h b/tests/testdata.h index 68dcbac..0d08efb 100644 --- a/tests/testdata.h +++ b/tests/testdata.h @@ -40,6 +40,12 @@ #define TEST_CHAR4 '\'' #define TEST_CHAR5 '\xff' +#define TEST_MEMREGION_ADDR 0x12345678 +#define TEST_MEMREGION_ADDR_HI 0x8765432100000000 +#define TEST_MEMREGION_SIZE 0x9abcdef0 +#define TEST_MEMREGION_SIZE_HI 0x0fedcba900000000 +#define TEST_MEMREGION_SIZE_INC 0x1000 + #ifndef __ASSEMBLY__ extern struct fdt_header test_tree1; extern struct fdt_header truncated_property; |