From patchwork Sun Mar 19 15:09:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 66585 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A523B385559A for ; Sun, 19 Mar 2023 15:11:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A523B385559A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679238692; bh=dByo/HxiqT+fe7sZFHuBekb+zmhg/JfjguygnsfB6kE=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=bcoo42Zag2ZCQQGvLNIlMXB/r+uBFzAG6VhT9Tu2R9Cjk6f0VY7TsT2BLHi8W/CGc +eRI+3QE65a9RXZPl/2M5+4b4YYTBn43UXlDX2e6anL52WpfCjvhmv2uqx9QpHVxYT oh6y9N0rracS3krlW+bYy8Vghe4fzz1mlyg6Q93Q= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by sourceware.org (Postfix) with ESMTPS id CF1E53858C60 for ; Sun, 19 Mar 2023 15:10:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CF1E53858C60 Received: by mail-lj1-x235.google.com with SMTP id 20so2559195lju.0 for ; Sun, 19 Mar 2023 08:10:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679238658; 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=dByo/HxiqT+fe7sZFHuBekb+zmhg/JfjguygnsfB6kE=; b=2dRYTEVVnsoVzGj+MpHA2uv8t7l6snOD6eI90b3QpZ6RIt2r1wgY/S2ikK4Fp9YUNX xfhtZ19iSoaM0kH0P1fs+sDko+7XXmWAse6+VaG45jD4enDiks20nBkWq9KvzG7lYZFx nLwb4IzeqgFc6Bp1g1lvDStf15aWqgwoyyltwM0F6S9UTNMZO3R7W519pQpDEIkiFkSq v44URZqiTTpWul6SGKCQnAnU5qx4d0VKkJhIkmO3LqkPFze13r6zcmHINDHAKQyHpEz/ ur6NdCuxNINUZjXTGiuOUcXBSHMp0j7hjzpy9ZjMWiXPY58sQBKRYCr28HhRie3orMDn tFgw== X-Gm-Message-State: AO0yUKWF3LSlJnroMyVp0/esqdHMS+uLZfLVWaqbca/NuHUCPiVvJzXw B7WIDsR96O4MNFCLLalnzzPhPkREcDyK2g== X-Google-Smtp-Source: AK7set9HaZyQJNj3GsHCM7Iz2GbvCEpwQzlfOk6ao/xa0m0D69C9je56qcOq1OAdWNzS7eqrUj4ubA== X-Received: by 2002:a2e:9c14:0:b0:295:c377:3eed with SMTP id s20-20020a2e9c14000000b00295c3773eedmr4831576lji.21.1679238657720; Sun, 19 Mar 2023 08:10:57 -0700 (PDT) Received: from surface-pro-6.. ([2a00:1370:818c:4a57:577a:76f4:df43:5e66]) by smtp.gmail.com with ESMTPSA id m19-20020ac24253000000b004e90dee5469sm1274089lfl.157.2023.03.19.08.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 08:10:57 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Cc: Samuel Thibault , Sergey Bugaev Subject: [RFC PATCH gnumach 02/34] Remove bootstrap.defs Date: Sun, 19 Mar 2023 18:09:45 +0300 Message-Id: <20230319151017.531737-3-bugaevc@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230319151017.531737-1-bugaevc@gmail.com> References: <20230319151017.531737-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" As far as I can see, this file was imported in the very beginning of GNU Mach history, and unused since then. Nobody implements or uses this interface. GNU Mach uses a different way to pass the privileged ports to the bootstrap tasks: instead of the task(s) actively asking for the ports in an RPC, the ports are preemptively inserted into the IPC space(s) of the task(s), as configured by the boot script. Remove bootstrap.defs so as to not confuse anyone into thinking it works. --- Makefrag.am | 1 - include/mach/bootstrap.defs | 49 ------------------------------------- 2 files changed, 50 deletions(-) delete mode 100644 include/mach/bootstrap.defs diff --git a/Makefrag.am b/Makefrag.am index 358f8db3..5d4f2c48 100644 --- a/Makefrag.am +++ b/Makefrag.am @@ -367,7 +367,6 @@ include_device_HEADERS = \ include_machdir = $(includedir)/mach include_mach_HEADERS = \ - include/mach/bootstrap.defs \ include/mach/default_pager.defs \ include/mach/default_pager_helper.defs \ include/mach/default_pager_types.defs \ diff --git a/include/mach/bootstrap.defs b/include/mach/bootstrap.defs deleted file mode 100644 index 0b233e4a..00000000 --- a/include/mach/bootstrap.defs +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Mach Operating System - * Copyright (c) 1992 Carnegie Mellon University - * All Rights Reserved. - * - * Permission to use, copy, modify and distribute this software and its - * documentation is hereby granted, provided that both the copyright - * notice and this permission notice appear in all copies of the - * software, derivative works or modified versions, and any portions - * thereof, and that both notices appear in supporting documentation. - * - * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" - * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * - * Carnegie Mellon requests users of this software to return to - * - * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU - * School of Computer Science - * Carnegie Mellon University - * Pittsburgh PA 15213-3890 - * - * any improvements or extensions that they make and grant Carnegie Mellon - * the rights to redistribute these changes. - */ - -subsystem bootstrap 999999; - -#include - -ServerPrefix do_; - -/* - * The old form of the bootstrap_privileged_ports RPC - * is not expressible in Mig syntax, because the reply - * message doesn't have a return code. - */ - -skip; /* old bootstrap_privileged_ports */ - -/* - * The startup task can make this call on its bootstrap port - * to get the privileged ports. - */ - -routine bootstrap_privileged_ports( - bootstrap : mach_port_t; - out priv_host : mach_port_t; - out priv_device : mach_port_t);