Re: [PATCH 09/11] sandbox: Add a way to map a file into memory

2021-09-23 Thread Simon Glass
Hi Marek, On Wed, 22 Sept 2021 at 20:09, Tom Rini wrote: > > On Wed, Aug 18, 2021 at 09:40:31PM -0600, Simon Glass wrote: > > > 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 > > Appl

Re: [PATCH 09/11] sandbox: Add a way to map a file into memory

2021-09-22 Thread Tom Rini
On Wed, Aug 18, 2021 at 09:40:31PM -0600, Simon Glass wrote: > 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 Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP sign

Re: [PATCH 09/11] sandbox: Add a way to map a file into memory

2021-08-19 Thread Marek BehĂșn
On Wed, 18 Aug 2021 21:40:31 -0600 Simon Glass wrote: > 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 > +int os_map_file(const char *pathname, int os_flags, void **bufp, int *sizep) > +{

[PATCH 09/11] sandbox: Add a way to map a file into memory

2021-08-18 Thread Simon Glass
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 --- arch/sandbox/cpu/os.c | 29 + include/os.h | 13 + 2 files changed, 42 insertions(+) diff --g