]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: mbr: Unmap the buffers after use
authorSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 22:26:31 +0000 (16:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Sep 2024 19:01:00 +0000 (13:01 -0600)
commit705cc13ce7a81111b93a11cfff1763e11586f33e
tree430483fd64799855ec61e0de10a0828ea9f7ec27
parent7086a894f091cb8ed03b519ed64c6117a704fe90
test: mbr: Unmap the buffers after use

This tests maps some local variables into sandbox's address space. Make
sure to unmap them afterwards.

Note that the normal approach with sandbox is to use a fixed memory
address in the RAM, to avoid needing to create a map for transient local
variables.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 04291ee0aba ("cmd: mbr: Allow 4 MBR partitions without need...")
test/cmd/mbr.c