From owner-freebsd-arch@FreeBSD.ORG Sat Aug 9 15:53:46 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38F8380A for ; Sat, 9 Aug 2014 15:53:46 +0000 (UTC) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (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 F410729C1 for ; Sat, 9 Aug 2014 15:53:45 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id w7so333220qcr.18 for ; Sat, 09 Aug 2014 08:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ANgPtVZhGquGy+muTEacS/DVjfmqmIk7lAmf2sYBf+4=; b=wS0Cl09Wl0ftuPt3xYtmGoKIVd9EcIDA3Pvb7ut6dtbZtr5ZT0k0P80EajeT3T38rY bY2O3IEypL/uxMqa6EjUHk4mc273UssXlb9Yts5vb1pQLeX5ftJf/xNKDUXVvR/o0SgS nOJAvsHP7ArvtVhtvC3qaVI5dHh5xaNtqHWbWnz0Ehev13lljWjhoSNOYAd6xxl3WZPT kUEJ8hGwBfb/269QYJ/RFO7v2QTTf4Q8ODjfyrSIiKKloyMqiY+pDadEFRyZsQZHLqck k/ycWzH2U9VCjdeehVeIx6DJgW1eh6YHmBzC2eF6ERMib9qIqoQydqMQipz+E2ZOZWpd Tu8A== MIME-Version: 1.0 X-Received: by 10.224.156.145 with SMTP id x17mr32575617qaw.49.1407599624987; Sat, 09 Aug 2014 08:53:44 -0700 (PDT) Received: by 10.224.41.6 with HTTP; Sat, 9 Aug 2014 08:53:44 -0700 (PDT) Date: Sat, 9 Aug 2014 08:53:44 -0700 Message-ID: Subject: RFC: 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: Sat, 09 Aug 2014 15:53:46 -0000 Hi, How's this look? Index: sys/sys/_types.h =================================================================== --- sys/sys/_types.h (revision 269480) +++ sys/sys/_types.h (working copy) @@ -52,6 +52,7 @@ typedef __uint16_t __nlink_t; /* link count */ typedef __int64_t __off_t; /* file offset */ typedef __int32_t __pid_t; /* process [group] */ +typedef __uint32_t __cpuid_t; /* CPU ID */ typedef __int64_t __rlim_t; /* resource limit - intentionally */ /* signed, because of legacy code */ /* that uses -1 for RLIM_INFINITY */ Index: sys/sys/types.h =================================================================== --- sys/sys/types.h (revision 269480) +++ sys/sys/types.h (working copy) @@ -154,6 +154,11 @@ #define _LWPID_T_DECLARED #endif +#ifndef _CPUID_T_DECLARED +typedef __cpuid_t cpuid_t; /* CPU ID */ +#define _CPUID_T_DECLARED +#endif + #ifndef _MODE_T_DECLARED typedef __mode_t mode_t; /* permissions */ #define _MODE_T_DECLARED -a