From nobody Mon Nov 25 03:40:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1718650964; cv=none; d=zohomail.com; s=zohoarc; b=cbNTTw2YVB6fR7KGpCuzxMgoAKf6dkr/1RHLuhPkmT7R66O5Tyb7T/cu1/EW6nqo5vSqzydcctAO3fGCIyOJhpaAQbjx0EaYHwFZzy6QSYv5VjMS0FcbEe8XtblGzIX1OeCGOeYfeSp7wUxaE8EpErPAl5mgjPYe1UjCchUeuRQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1718650964; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BKxS0/De0h1OuVT3aoFJuagPA3gXdMM1tQtaPW9ssyc=; b=PsrMGOz+WsCmT0tBc0yqQ+LJwI18YO+XSAqjpKvByWkJzonqd0tNLp+iDjTEx9CNFJMYqY2j/ReX8YDr0JxUVpLWTI4b4ESZGOjRHxQleMckcIeDaEB7p5h+5Ber+JQNIpJ6xznAG8WXMXupEDxh1WAjA5wwwhV9Aaccm8MYnbE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1718650964786271.82724852040315; Mon, 17 Jun 2024 12:02:44 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJHZ3-0004jv-R5; Mon, 17 Jun 2024 14:58:51 -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 ) id 1sJHYt-0004RN-1Q for qemu-devel@nongnu.org; Mon, 17 Jun 2024 14:58:39 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJHYr-0004yQ-B9 for qemu-devel@nongnu.org; Mon, 17 Jun 2024 14:58:38 -0400 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-705b9a89e08so4054948b3a.1 for ; Mon, 17 Jun 2024 11:58:36 -0700 (PDT) Received: from localhost.localdomain ([106.222.222.115]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-705ccb4aa4fsm7660637b3a.131.2024.06.17.11.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jun 2024 11:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718650716; x=1719255516; 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=BKxS0/De0h1OuVT3aoFJuagPA3gXdMM1tQtaPW9ssyc=; b=DWl1C3y7+cJD2iq0nAY8eXr8cymqcRF06S3OxfL4Y8Muym2pCXbm4NGRZyvQVBIPvN rxR5fNhII6yqybwoFonpwko2J2jUgbDwPkY3ikO7POkg+bHEgdr/MsDH0rzw5v1YVTxW RnI6tJYPxfDDUz1g36s3/l3yzBOT34Ek/RVpCJ/5VRtoBTdSWYSFiLb7h0o12FmRbimy zejsmW9C/1D7UepvnvZeVs6qWcwS+szdPxSyf9S0Mshs9ZuJwataR5RY8XFtzk8TLNHW cW0sFjvpTd4MGxk8aY/rZTOyArxWYaswYhQRck9QX3R/+x1AOXuK3KMFiuPclm8/ie5C MC5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718650716; x=1719255516; 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=BKxS0/De0h1OuVT3aoFJuagPA3gXdMM1tQtaPW9ssyc=; b=NtqbQF9K1i6CRtF7NnIQis2utIt+15VLsYGZv9gGfUwj7PmCQchailyAav/a2L761K aokIZlvb2aSm2oqt93DL7zuxriqZxIZ9gRVs+dU21ClivZ8pF8SVpFWik6A6FhN9GFuu yPtOBEerZMi2BHCq6M7hSVHbeZzdEj71Exq7CMU6MA7g5ja2ycPiGiehdYJVWJ+8oukS rSvksUR2PQRs8EOYvyA3YaiQ1yZ3IV0XhdwN+ev2pu75v6795thU3IJqvFKN5SpYI4ck LWTwy0O8bAuJ4SmoQfYHS3Rh1B2VYZvmqWnPT2t9ve56CCz12sSMSdc6LEq47lJtU/nM 7Bvw== X-Gm-Message-State: AOJu0YzbOSQ6JjngDIEcas/4d6YRyEpOut3IFpOe0P+e4COVRwYDTZCz DQ1xS6GrWZ5MVfrIE/Es/zn4gFhON9kt1XH9ii1Bcq0rmE/XScqfH29WmMOBs0M= X-Google-Smtp-Source: AGHT+IFXPx9+NnaJ12o3LRv0Xz/+IIYcKeMMRBkz8ZkjeebPlQdTK5wiL/yH2MRlsiT/OSRULEb2cw== X-Received: by 2002:aa7:91cc:0:b0:705:c310:60b0 with SMTP id d2e1a72fcca58-705d719331cmr10467354b3a.25.1718650715747; Mon, 17 Jun 2024 11:58:35 -0700 (PDT) From: Ajeet Singh X-Google-Original-From: Ajeet Singh To: qemu-devel@nongnu.org Cc: Warner Losh , Ajeet Singh , Stacey Son , Ajeet Singh Subject: [PATCH 07/23] Add ARM AArch64 TLS Management Prototypes for BSD-User Date: Tue, 18 Jun 2024 00:27:48 +0530 Message-Id: <20240617185804.25075-8-itachis@FreeBSD.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617185804.25075-1-itachis@FreeBSD.org> References: <20240617185804.25075-1-itachis@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=itachis6234@gmail.com; helo=mail-pf1-x42e.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, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1718650965176100001 Content-Type: text/plain; charset="utf-8" From: Stacey Son Prototypes for setting and getting TLS( thread local storage) Signed-off-by: Stacey Son Signed-off-by: Ajeet Singh Acked-by: Richard Henderson --- bsd-user/aarch64/target_arch.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bsd-user/aarch64/target_arch.h diff --git a/bsd-user/aarch64/target_arch.h b/bsd-user/aarch64/target_arch.h new file mode 100644 index 0000000000..27f47de8eb --- /dev/null +++ b/bsd-user/aarch64/target_arch.h @@ -0,0 +1,28 @@ +/* + * ARM AArch64 specific prototypes for bsd-user + * + * Copyright (c) 2015 Stacey D. Son + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#ifndef TARGET_ARCH_H +#define TARGET_ARCH_H + +#include "qemu.h" + +void target_cpu_set_tls(CPUARMState *env, target_ulong newtls); +target_ulong target_cpu_get_tls(CPUARMState *env); + +#endif /* TARGET_ARCH_H */ --=20 2.34.1