From owner-svn-src-head@freebsd.org Sun Feb 26 17:37:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87F51CEE441 for ; Sun, 26 Feb 2017 17:37:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5852FF50 for ; Sun, 26 Feb 2017 17:37:46 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x232.google.com with SMTP id l7so6275849ioe.3 for ; Sun, 26 Feb 2017 09:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Oy6OGawpdlV7LYNjELxEzN9rT4Nzpa2hoi4q2wcIz4A=; b=DDo9IgOLTy3eT6CJ4nYBvxtL1nqpJfiqbxwNokXEWcthb4DlPUdusm/sKTKJnDDHym Ns4+94kEjTCeHy6nb6yRxqxnq3UoI76clSwaE9usn7B3YyjPTIJktWwx2R/pvUnfn5Xl IP+k1PQQ2yM5Rm2SLtchfbFV9dRTbKZwWtJqP5z66j6B3Tqk1NcKjS7D/m1mw9a/nNcy 0egolUQw7yb4RXXLzxkISC55SKTHox3BF8YB0pYxt6VwdZ8tb9MXxY0bX5iNfTpy6PP3 kLYaW9rryiyYBu3CNO1ydAqXgEOCQryH5aa1xassaM+MuJ0KojCLTVqZAh3g54rgb4dv NB3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Oy6OGawpdlV7LYNjELxEzN9rT4Nzpa2hoi4q2wcIz4A=; b=mHXyniP8ope1IHg6GK8jN/B+9npHlKvpjQ22uRiv4KMvhebkdr3p9r/qti+JmaMw+a ONBANleclNAsQzDRPIeuA0+qSqluQdiLq2MTL1hWOqCnVIhR7uOCHEY/z/wejY0aG+EM Hxa7Ws3XeKJ2c01puG8lLz8J5P6SxiJXKwK0rceO+xNpKmGj7+ONPuldIGdSkJ6UQxun +X9NxCjonTEBH5XBxfV9hVnLi/m7Dcdgspv0A10Nx0hKrI6phNz9fV8HwQ2hwjPbu3m5 dDSQAa6PrwR3I/0o6WoI6zCzh9hQh59texDwwo9OFIOzD6kdL5eZE8H5uXqOOvTv6Qnf ydMw== X-Gm-Message-State: AMke39mM0DZ9R72OxN1U/JSPt5y/E7udOgPl47NTHV45HMhQsy6YaRFEP0bfwtP26W6XYRURMZkjC3r4z20tng== X-Received: by 10.107.11.216 with SMTP id 85mr11271146iol.0.1488130665612; Sun, 26 Feb 2017 09:37:45 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.145.132 with HTTP; Sun, 26 Feb 2017 09:37:45 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <20170226124445.GE2092@kib.kiev.ua> References: <201702220707.v1M7764i020598@repo.freebsd.org> <20170223053954.J1044@besplex.bde.org> <20170224125335.GV2092@kib.kiev.ua> <20170225130549.C1026@besplex.bde.org> <20170225101543.GC2092@kib.kiev.ua> <20170226013936.S856@besplex.bde.org> <20170226124445.GE2092@kib.kiev.ua> From: Warner Losh Date: Sun, 26 Feb 2017 10:37:45 -0700 X-Google-Sender-Auth: ZqYlrp3Yw8xm7bvfBJj80IcbqX0 Message-ID: Subject: Re: svn commit: r314087 - head/sys/x86/x86 To: Konstantin Belousov Cc: Bruce Evans , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 17:37:46 -0000 On Sun, Feb 26, 2017 at 5:44 AM, Konstantin Belousov wrote: > On Sun, Feb 26, 2017 at 04:43:12AM +1100, Bruce Evans wrote: > 2.9 BSD was a port to PDP-11, AFAIK, with 16bit ints. A bit off topic, but 2BSD was basically[**] a continuation of Research Unix which started out life on the PDP-11 (well, OK, it started life in assembler on the PDP-7, but then was rewritten in C on the PDP-11). PDP-11 had 16-bit ints, 32-bit longs, 16-bit shorts, 16-bit pointers, 8-bit chars and 20-bit physical addresses. After 2.9, it also required weird things like separate I&D space where you could have a function pointer and a data pointer that had the same bit pattern, but referred to different objects because instruction space and address space were different (effectively giving 17-bits of address space, kinda). But you also had things like an overlay manager from hell that would page in different parts of the code if the program couldn't fit int 64k, and many of the limitations of the BSD 2.11 TCP stack were based on limitations of how deep you could do the overlays. It didn't have long longs. Or a compiler more modern than K&R[*]. Other than that, ULL vs explicit casts Warner [*] OK, gcc can produce pdp-11 output, even to this day. But it's far far to large to run on a pdp-11 natively. [**] Lots of cross pollination between BSD and Bell Labs is noted and documented extensively elsewhere.