Message ID | 20240722214313.89503-7-imp@bsdimp.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bsdimp-com.20230601.gappssmtp.com header.i=@bsdimp-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=mGImdnD6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WSYlM5Phbz1ybY for <incoming@patchwork.ozlabs.org>; Tue, 23 Jul 2024 07:46:55 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1sW0qA-0005cj-5k; Mon, 22 Jul 2024 17:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1sW0py-00052t-BO for qemu-devel@nongnu.org; Mon, 22 Jul 2024 17:44:55 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <imp@bsdimp.com>) id 1sW0pv-0004Jv-4u for qemu-devel@nongnu.org; Mon, 22 Jul 2024 17:44:54 -0400 Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-8036ce6631bso192165939f.1 for <qemu-devel@nongnu.org>; Mon, 22 Jul 2024 14:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1721684689; x=1722289489; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TXCw0+RJXjXO156yoRFr2t5+0iBs33zwi5q8sWmsNWs=; b=mGImdnD6NnY2fiyMxfff6bzdmMsZ4PCTGUG0fv4jw0BaE7TjCSWTxxe17AgcFVxlnD nqjo/ezwe0hhuwsnbyosVFuFfJ6bov0zchrm6ufpsmCHgRJsBGGR6AHtFCR0JrW0GT5X QlPsn+ph3iauhRZDpDUT7YJNPv9tPrZM3+q/PomNq8K5CZFDYyHuNdOIZcBpgEa1tGMg GHrVjAt/5JcEWfT0j2O82G5TCmtiHoeL5DcYuXSEpz46srNn5kzgzuqcq/zjYSSP3wao 6SHjJFWRFtgQTmde3CThIDA8lLXuFzYKYArPrJx+XPIXzFjXRW26A/oDuQS9i6B1YF94 hzAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721684689; x=1722289489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TXCw0+RJXjXO156yoRFr2t5+0iBs33zwi5q8sWmsNWs=; b=AmqZp/5LMfU+ClvejZLQDuQMbN46CZFJt3LvHDrLpItjvvQy9/eYWC3+lJA/18SqHM LBlsrp9+s9zlUb5vXlTxNkvJ7RSdj0k2FrSlcSZI5bXYs8sjGKw56AEvep5pWImeJ8WS 0ZIu8IkOscWTD3Mz3ABKqf78InEOUMEAjuhany7KLOEVQNM2JuC07n5V8dOBifN43DnK 6ZyDfcHqZjHJVDJQag11ToNwn+npHPXeDdaSq6aQSoiAX00ScvbFNpLP7vSgqz+SUIo1 AoJCo8hDyaCVTAo7UBhZb4CzwONGhLUUOq5gsx5/HaV8IgISkwhcYERKRMroUThK2l+B VZEQ== X-Gm-Message-State: AOJu0YyrhbQT3ieXfBUZZd0sW/Jo5Juo4c1kO+HRGkblYBKB+eawxUY2 zz8R1uMCzJZ0djUxFrZzr32aRluzgN+bxnSNpSYdjvrcSMiej8+YtgGCJqZp67XaGJKqY1M1LgH 8wIY= X-Google-Smtp-Source: AGHT+IEE7ofsla5+qarLZe2qwNUP8j1KYkTYoknhXr7sHyAtMVrKF+Ne0JSP6eDG9jUdcBflGLgryQ== X-Received: by 2002:a05:6602:6003:b0:804:9972:2f8c with SMTP id ca18e2360f4ac-81ea375ce88mr139197139f.8.1721684689326; Mon, 22 Jul 2024 14:44:49 -0700 (PDT) Received: from dune.bsdimp.com ([50.253.99.174]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4c2343d2ff3sm1816830173.128.2024.07.22.14.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jul 2024 14:44:48 -0700 (PDT) From: Warner Losh <imp@bsdimp.com> To: qemu-devel@nongnu.org Cc: Kyle Evans <kevans@freebsd.org>, qemu-arm@nongnu.org, Warner Losh <imp@bsdimp.com>, Peter Maydell <peter.maydell@linaro.org>, Ajeet Singh <itachis@FreeBSD.org>, Richard Henderson <richard.henderson@linaro.org> Subject: [PATCH 06/14] bsd-user:Add setup_sigframe_arch function for ARM AArch64 Date: Mon, 22 Jul 2024 15:43:05 -0600 Message-ID: <20240722214313.89503-7-imp@bsdimp.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240722214313.89503-1-imp@bsdimp.com> References: <20240722214313.89503-1-imp@bsdimp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2607:f8b0:4864:20::d36; envelope-from=imp@bsdimp.com; helo=mail-io1-xd36.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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
Series |
bsd-user: Misc changes for 9.1 (I hope)
|
expand
|
diff --git a/bsd-user/aarch64/signal.c b/bsd-user/aarch64/signal.c index ab3bf8558ab..43c886e6036 100644 --- a/bsd-user/aarch64/signal.c +++ b/bsd-user/aarch64/signal.c @@ -81,3 +81,17 @@ abi_long get_mcontext(CPUARMState *regs, target_mcontext_t *mcp, int flags) return err; } + +/* + * Compare to arm64/arm64/exec_machdep.c sendsig() + * Assumes that the memory is locked if frame points to user memory. + */ +abi_long setup_sigframe_arch(CPUARMState *env, abi_ulong frame_addr, + struct target_sigframe *frame, int flags) +{ + target_mcontext_t *mcp = &frame->sf_uc.uc_mcontext; + + get_mcontext(env, mcp, flags); + return 0; +} +