sandbox: Add a way to map a file into memory
authorSimon Glass <sjg@chromium.org>
Thu, 19 Aug 2021 03:40:31 +0000 (21:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 16 Sep 2021 17:19:25 +0000 (13:19 -0400)
commitb9274095c2cd1ae42f232c823e9e9557696be91a
tree86f177f5110c4774d7b09e4042ae9591e8b984fd
parentb4467fae06e7c5b48635cd28e0b168b8508ad168
sandbox: Add a way to map a file into memory

It is useful to map a file into memory so that it can be accessed using
simple pointers. Add a function to support this.

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