sandbox: Unprotect DATA regions in bus tests
authorSimon Glass <sjg@chromium.org>
Tue, 2 Oct 2018 03:12:32 +0000 (21:12 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 8 Oct 2018 13:34:34 +0000 (07:34 -0600)
commit9f8037ea9ca81fc158bc190f7427f329d96ad76c
tree9281878d51a409189bfea57068c6ebe12f13ae99
parent0a60a81ba3860946551cb79aa6486aa076e357f3
sandbox: Unprotect DATA regions in bus tests

On my Ubuntu 18.04.1 machine two driver-model bus tests have started
failing recently. The problem appears to be that the DATA region of the
executable is protected. This does not seem correct, but perhaps there
is a reason.

To work around it, unprotect the regions in these tests before accessing
them.

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