Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be2a262b authored by Quang Luong's avatar Quang Luong Committed by android-build-merger
Browse files

Merge "uml: init: add USER_MODE_LINUX cflag, USER_MODE_LINUX case in init.cpp" am: a022ea42

am: c1e78e13

Change-Id: I81d4f619f38a6f511562d98fe7a0dd64c7290f81
parents 852a6cd6 c1e78e13
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@ endif

init_options += -DLOG_UEVENTS=0

ifeq ($(TARGET_USER_MODE_LINUX), true)
    init_cflags += -DUSER_MODE_LINUX
endif

init_cflags += \
    $(init_options) \
    -Wall -Wextra \
+4 −1
Original line number Diff line number Diff line
@@ -391,7 +391,10 @@ static int set_mmap_rnd_bits_action(const std::vector<std::string>& args)
    int ret = -1;

    /* values are arch-dependent */
#if defined(__aarch64__)
#if defined(USER_MODE_LINUX)
    /* uml does not support mmap_rnd_bits */
    ret = 0;
#elif defined(__aarch64__)
    /* arm64 supports 18 - 33 bits depending on pagesize and VA_SIZE */
    if (set_mmap_rnd_bits_min(33, 24, false)
            && set_mmap_rnd_bits_min(16, 16, true)) {