]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Implement reference counting for address mapping
authorSimon Glass <sjg@chromium.org>
Sun, 1 Sep 2024 22:26:27 +0000 (16:26 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 18 Sep 2024 19:01:00 +0000 (13:01 -0600)
commitf452e8f092b3e500ac955e44b7a3f1680d62d8f7
tree19f40f83ee123b09286180db8fb2c2246f0b5893
parent505b21b60720f00ef67d880fa7f176cbd207c1c3
sandbox: Implement reference counting for address mapping

An address may be mapped twice and unmapped twice. Delete the mapping
only when the last user unmaps it.

Fix a missing comment while here.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
arch/sandbox/include/asm/state.h