[PATCH v4 0/1] libfdt: add fdt_appendprop_addrrange()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This function will be used in the future, once merged into linux kernel
tree, to implement kexec_file_load-based kdump for arm64.
See my kernel patch[1].

# I think "FSF's address" be removed from the license claim,
# but I keep it unchanged for consistency with other sources.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/612641.html

Changes in v4 (Mar 27, 2019)
* cautiously check against "addr + size" to avoid 64-bit overflow
* re-implement fdt[32|64]_st() with byte accesses.

Changes in v3 (Mar 8, 2019)
* merge a commit of test code with a commit of library code
* add helper functions, fdt[32|64]_st()
* add a check for cell sizes, with cpu64_to_fdt_cells() expanded
  in fdt_appendprop_addrrange()
  (I intentionally left the logic at check_getprop_addrrange() in
  testutils.c unchanged for test purpose.)
* remove a check for name in fdt_appendprop_addrrange()

Changes in v2 (Jan 24, 2019)
* change interface semantics based on David's suggestion, from 'set'
  to 'append'
* So the function name was also changed.

AKASHI Takahiro (1):
  libfdt: add fdt_append_addrrange()

 libfdt/fdt_addresses.c       |  47 +++++++++++++++
 libfdt/libfdt.h              |  61 ++++++++++++++++++++
 tests/.gitignore             |   1 +
 tests/Makefile.tests         |   1 +
 tests/appendprop_addrrange.c | 108 +++++++++++++++++++++++++++++++++++
 tests/run_tests.sh           |   5 ++
 tests/testdata.h             |   6 ++
 tests/tests.h                |   3 +
 tests/testutils.c            |  58 +++++++++++++++++++
 9 files changed, 290 insertions(+)
 create mode 100644 tests/appendprop_addrrange.c

-- 
2.20.1




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux