]> git.baikalelectronics.ru Git - uboot.git/commit
loads: Block writes into LMB reserved areas of U-Boot
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 10 Oct 2021 21:52:41 +0000 (23:52 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 Oct 2021 18:29:37 +0000 (14:29 -0400)
commit69357abf9acefe6ea1abc14584128d53eb1a16cb
tree053e9de613a538fc7d706809f7c55f19f0da2220
parent24226a8111f5d89ecccb65bfc787469d4219523e
loads: Block writes into LMB reserved areas of U-Boot

The loads srec loading may overwrite piece of U-Boot accidentally.
Prevent that by using LMB to detect whether upcoming write would
overwrite piece of reserved U-Boot code, and if that is the case,
abort the srec loading.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/load.c