From owner-svn-src-all@freebsd.org Sun Feb 26 17:37:47 2017 Return-Path: Delivered-To: svn-src-all@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 85F40CEE444 for ; Sun, 26 Feb 2017 17:37:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 4D2A0F51 for ; Sun, 26 Feb 2017 17:37:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x22e.google.com with SMTP id g18so19404731ioe.0 for ; Sun, 26 Feb 2017 09:37:47 -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=gsq+zMOF8n4GERuswXWPqDBoCcaBNtNq9z6cAGuGE6c91jbfRp9isBqtGcJiyZTtzz Hia1ab/B/hHPcLds7Al7dZF0hvLLTtBx3jeF0GLA64zy+OtGwtNm/aIvRnTZ689UGDVF //kxHxbSVhIzTIFkRoCZqCLhbyfVLk4aH/kaEgp1RLLrDmUhwR90Puv8G4LGYE0ylLaX sWndOhNROF68JuaL+DKeq/qDKixBTeV0u3CS9zBNHmWg2KG3mIdVlkP4hpbIcbn6BF85 omgR5unnwseQOTOR1Uad437AH/RE0OVWbKk0InR6Lr0ZjV8ds8UBKgBcqeEtQd3JPfHt 9WYA== X-Gm-Message-State: AMke39mGBluOfVbL+CJQsNbzY4PKU8jARY0cqRZt+Gvyc+eh/9Oh/vxsWbhKkYFcfELzzZ9k5H7LvZ4d/l812A== 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-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 17:37:47 -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.