From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADC6FC433EF for ; Wed, 24 Nov 2021 22:24:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA91983751; Wed, 24 Nov 2021 23:23:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="AiL1DNU0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 954F482FB3; Wed, 24 Nov 2021 23:22:52 +0100 (CET) Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4F80383395 for ; Wed, 24 Nov 2021 23:22:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x92e.google.com with SMTP id o1so8264843uap.4 for ; Wed, 24 Nov 2021 14:22:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=vxgs73tx6yA4sswYn/i3RrOKH5/VvcPHyGap5oKPLIs=; b=AiL1DNU0AqijxRrMUgaLF+1YmOSmgSR0qhnnaRWpLuOnfgiEQ4LvHyxIb6f6INGtB2 47BBMyL4G5Pjm59M1Ty4Le1MfE+rV7TgTmrrLHz21MLyIaYBMBk8hu9kHSD0LVL2DCvV iWaXCLCbZOanImY6NXav8SYRu92s+Ijf6Dm6I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=vxgs73tx6yA4sswYn/i3RrOKH5/VvcPHyGap5oKPLIs=; b=T2NGH4zsdiSRkdDW2gFwJ9rA7FogUrZSpfHUb1R2jObyGIDietL1lupd7b9GHdLjrq ePsPrR7st0/FzaExk4LPhUUfnBhh6z93pJJgd12K2K7QHZnSnmokdmN+BIcx4CEHFMNT +gCyfCwfg/WDYRxSqGf5MAHm2fywNfkZODjI6QJkjyanZktaJA2G6cQONxvXgBEC90S2 3flRpLAdoqprHi269DdFW85zHEus4I37OR6FYtar8JJ8qx4de+YHnYognsrnLz1/fgoR f+WM07d6wNBf+SFoDuN6/XJ3Nz/pGZ2uzm34SOtFJ5MozlU8tcrPIsLAG1WPkcVmB1l1 5VSw== X-Gm-Message-State: AOAM532ZUvajPtZJg5QIHMiZlTCg9t68CcBtvBuxDfTkhW+DZBpXytF6 ULIHhSjSYICiK5a7uWyOhFLiTkG1SU624hFOwoq144J2uK0= X-Google-Smtp-Source: ABdhPJzsJ0fuaLrj4eb1KrEaq1oIkGIy5wT9yTam8xMIWQXDmCK+OdlPYy23OK0jENRI7UQoZWGj0wzUifZE1uooTdY= X-Received: by 2002:a05:6102:c86:: with SMTP id f6mr1037185vst.38.1637792558960; Wed, 24 Nov 2021 14:22:38 -0800 (PST) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Nov 2021 17:22:37 -0500 MIME-Version: 1.0 From: Simon Glass In-Reply-To: <20211023232635.9195-5-sjg@chromium.org> References: <20211023232635.9195-5-sjg@chromium.org> <20211023232635.9195-1-sjg@chromium.org> Date: Wed, 24 Nov 2021 17:22:37 -0500 X-Google-Sender-Auth: HIpxKqtckBwthW1I48TODWx9uYo Message-ID: Subject: Re: [PATCH v2 04/41] sandbox: Support unmapping a file To: Simon Glass Cc: Michal Simek , Heinrich Schuchardt , Tom Rini , Ilias Apalodimas , Daniel Schwierzeck , Steffen Jaeckel , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Lukas Auer , Dennis Gilmore , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Add the opposite of mapping, so that we can unmap and avoid running out of address space. Signed-off-by: Simon Glass --- (no changes since v1) arch/sandbox/cpu/os.c | 10 ++++++++++ include/os.h | 9 +++++++++ 2 files changed, 19 insertions(+) Applied to u-boot-dm/next, thanks!