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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91547C433F5 for ; Fri, 5 Nov 2021 03:44:50 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4725361139 for ; Fri, 5 Nov 2021 03:44:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4725361139 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bsdimp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:55298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miq9p-00031R-A2 for qemu-devel@archiver.kernel.org; Thu, 04 Nov 2021 23:44:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mipm8-0004py-R0 for qemu-devel@nongnu.org; Thu, 04 Nov 2021 23:20:20 -0400 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]:43578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mipm6-0004En-Vn for qemu-devel@nongnu.org; Thu, 04 Nov 2021 23:20:20 -0400 Received: by mail-il1-x134.google.com with SMTP id s14so8246148ilv.10 for ; Thu, 04 Nov 2021 20:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yoeAnz3VyRcRL1RlLNODqzA0JM0MBxuW327s+9LBmds=; b=UB0EeSrt4oZV63t/p4qS26PjIoi9MqTlpjjW7ihGyeeNDqpHFSmj2luxikMUsI9CfO e+B1WmNNaogVyV3iC7zrx4l6rjtHKH8N+GJ572Qd81ZFSEeoL76A3thEHUnUm21W44dd Asu4DNm+gKEOxZWrAPc7nzz0Ow7YAgfZ427ON5BjDEZVdDI5RwS4zx8/bpuXIeXv2WhV Sf0yltSRBBS80eoMhyFkYclNXAspsiP8mDkqc1SYcH34G7SnbNR3b/df/bl8jZoJ1s+8 8awHK0vpeOWIBKRbMZts228IJ/2N/9ig0gFxNZNfnPuII/qxj9JNtFP354qhXrM5Wb2E jn5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yoeAnz3VyRcRL1RlLNODqzA0JM0MBxuW327s+9LBmds=; b=glnjg6Phk8/t9Xm4PT4kR6kbcfwsjqUOWDO0NtFnnCBCb4r2wVtenoYiyLMXLbDCxN sD+vG3TuZTg41tSwYHxEjl05OOyoK3ruq/cbocWIPXMKzt6N/4EawpLTlLLfpYNzyOlz oIXkfj/mDhhOYWUAlkIH4+rM1QmI/J5goHoIjJEOdaDwUlVgwoG4hJUcmvid1GtUtkT2 p3krrDX5KNUOMoHYs5SwGTvaHYm/RATO5VQcskYNfaXrUgRbt4BLNFCEr+lwH9TgjgD8 sTC4+GOjqWGSdNSJmafOcX1bT/boz5IewYLqMrlUKDzDa43SNCi2zdIPY7xF2FK7d8kT S/Vw== X-Gm-Message-State: AOAM533zIMgaKt0NkSqTcodHtlJmBkpBHwqUPJw8GeO7UzR8xVpZirBx m1B5ZgMpR1Sgl7reM1qAU12hQv/DgUlItw== X-Google-Smtp-Source: ABdhPJyOVYS3x7Eputq2oVMVlk4uWPWklj+/s5YUtVlJVe3imYpq8GrmEGlSnrfWtAEHP57vmI7SqQ== X-Received: by 2002:a92:ca07:: with SMTP id j7mr31032795ils.69.1636082417623; Thu, 04 Nov 2021 20:20:17 -0700 (PDT) Received: from dune.bsdimp.com (50-253-99-174-static.hfc.comcastbusiness.net. [50.253.99.174]) by smtp.gmail.com with ESMTPSA id v4sm3508528ilq.57.2021.11.04.20.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Nov 2021 20:20:17 -0700 (PDT) From: Warner Losh To: qemu-devel@nongnu.org Subject: [PATCH v4 30/36] bsd-user/arm/target_arch_signal.h: Define size of *context_t Date: Thu, 4 Nov 2021 21:19:11 -0600 Message-Id: <20211105031917.87837-31-imp@bsdimp.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211105031917.87837-1-imp@bsdimp.com> References: <20211105031917.87837-1-imp@bsdimp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::134; envelope-from=imp@bsdimp.com; helo=mail-il1-x134.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Michael Tokarev , Richard Henderson , Philippe Mathieu-Daude , Laurent Vivier , Kyle Evans , Warner Losh Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Define the native sizes of mcontext_t and ucontext_t so that the tests in target_os_ucontext.h ensure the size of arm's version of these structures is correct. Signed-off-by: Warner Losh --- bsd-user/arm/target_arch_signal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsd-user/arm/target_arch_signal.h b/bsd-user/arm/target_arch_signal.h index 9527335cc9..f1844dbf22 100644 --- a/bsd-user/arm/target_arch_signal.h +++ b/bsd-user/arm/target_arch_signal.h @@ -74,6 +74,9 @@ typedef struct target_mcontext { abi_int mc_spare[33]; } target_mcontext_t; +#define TARGET_MCONTEXT_SIZE 208 +#define TARGET_UCONTEXT_SIZE 260 + #include "target_os_ucontext.h" struct target_sigframe { -- 2.33.0