From owner-freebsd-arch@FreeBSD.ORG Thu Jul 24 07:03:24 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD9281AE for ; Thu, 24 Jul 2014 07:03:24 +0000 (UTC) Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 830D02C99 for ; Thu, 24 Jul 2014 07:03:24 +0000 (UTC) Received: by mail-qg0-f48.google.com with SMTP id i50so2743422qgf.7 for ; Thu, 24 Jul 2014 00:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=BK1NtdXRbbvxbVyHBhCyKbFZH8zMGbUGNaj3sMGQfHw=; b=TwlwIOkvbL17JWrKijLQT0Y2oRjpQLH7xk+9b4dlt8gusgtst0Jqi2jullPlfimFwP Wj+oogbpe48OwsrPZsKKpJ7OrHlD2lnkiN78TciTkCIWGkUV2AriJm7qV5OF8dmJzojL m8+FNUwzsnz7Q9F4/+mPLfUMyAa6LOi4+VD5AicRy/tFpmeL6SRx06BiaGHt5AiHnA3E NrK5aYSIppCElEB/L2LbtLo1cXb2Jd5K2P5+FgAAXl2DssuZPamG5tZuoSYum0azuHhd fw0QfHlNk0L6VvQ8gNZtv6rNTt0fliBXhVCD89RTq0WjT0dboYh0Sy8pklI7/a645rml T0/Q== MIME-Version: 1.0 X-Received: by 10.140.102.142 with SMTP id w14mr10787007qge.101.1406185403460; Thu, 24 Jul 2014 00:03:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Thu, 24 Jul 2014 00:03:23 -0700 (PDT) Date: Thu, 24 Jul 2014 00:03:23 -0700 X-Google-Sender-Auth: 3ZWo4bP1HzRG2RaDdZXiMWxoaVo Message-ID: Subject: [rfc] where to put cpuid_t ? From: Adrian Chadd To: "freebsd-arch@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2014 07:03:24 -0000 Hi! I've been chipping away at a cpuid_t in a local branch for a while and I think I have the very basics working well enough. However, the most annoying thing that's crept up is the most bikeshed topic of them all - where should it live. I'd like to avoid having to include sys/pcpu.h or sys/_cpuset.h just for the id type - it seems a bit overkill. So - suggestions? Otherwise I'm going to leave it in sys/pcpu.h and just polluate appropriately. I'd like to try and get cpuid_t and a handful of KBI-changing things into -HEAD before 11 is branched so we at least have a hope of trying to support > 128 CPUs out of the box in the immediate future and > 253 CPUs in the later future. -a