From owner-freebsd-current@FreeBSD.ORG Thu May 29 21:09:06 2014 Return-Path: Delivered-To: freebsd-current@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 CFF0DEA0; Thu, 29 May 2014 21:09:06 +0000 (UTC) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (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 5F5C527CD; Thu, 29 May 2014 21:09:06 +0000 (UTC) Received: by mail-qg0-f47.google.com with SMTP id j107so2821092qga.34 for ; Thu, 29 May 2014 14:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SuTYZb7fiozLeQ44CF6zDfDy+mn+GOeBdK40kzYmd1U=; b=jtkoSBLGNLojNeU8VECYlEWppORlqd0hoDAPO8TafUlKgjh2zwQ/Nokuypcjr78Q7Z iGwdJ44a7vlpGHob+pGGDcC6W4fVlba1JuyaSCgXGSExN6MDtvVNW+Vb9WwF/HbsJY/A g1X1Lon/SpQGkuLoUfMsfvMecm2Gm3Dwfw/qY8ECOc1myIE3TFyhs8MNZLw05KJ9aR8l jC0WXou5zustKRaSGFmtpJeyPlenYsw1JzvOU47edTLMVDSZsIZQcAcDDC+qRV2qd03a GbJFDaXh+daxgfS+GdYTOPU+wUpGRbM/D3HTTb/8/HfeDBclp9D3ZMQup3YhEF5GSpyo EmhA== MIME-Version: 1.0 X-Received: by 10.140.91.5 with SMTP id y5mr13334989qgd.12.1401397745355; Thu, 29 May 2014 14:09:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.191.201 with HTTP; Thu, 29 May 2014 14:09:05 -0700 (PDT) In-Reply-To: <201405291618.55058.jhb@freebsd.org> References: <201405291618.55058.jhb@freebsd.org> Date: Thu, 29 May 2014 14:09:05 -0700 X-Google-Sender-Auth: ydozgcobl1-OFxWDet7W-KC5S70 Message-ID: Subject: Re: cpuid_t typedef? (was Re: Processor cores not properly detected/activated?) From: Adrian Chadd To: John Baldwin Content-Type: text/plain; charset=UTF-8 Cc: Attilio Rao , freebsd-current , Jia-Shiun Li , Alan Somers , Tim Bishop X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 21:09:06 -0000 On 29 May 2014 13:18, John Baldwin wrote: >> anyway. Besides all of this - I'm thinking of just introducing: >> >> typedef uint32_t cpuid_t; >> >> .. then once we've converted all the users, we can make NOCPU >> something other than 255 (which is the other limiting factor here..) >> >> Any objections? > > This one is a bit harder as you'll have to do shims for kinfo_proc, but > I think this is fine. You could also just use u_int, but a new foo_t > isn't that bad I guess. I don't think I'd modify any userland-facing ABI/KBI's just yet. I'm just worried that 11.0-REL will come out before we have made a decent inroads into this and we _can't_ support > 254 CPUs. -a