From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 403 invoked from network); 18 Feb 2021 09:31:20 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 18 Feb 2021 09:31:20 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Received: from mail-pj1-f44.google.com ([209.85.216.44]) by 1ess; Thu Feb 18 04:22:52 -0500 2021 Received: by mail-pj1-f44.google.com with SMTP id kr16so999224pjb.2 for <9front@9front.org>; Thu, 18 Feb 2021 01:22:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mforney-org.20150623.gappssmtp.com; s=20150623; h=message-id:to:from:date:subject; bh=pqoQdI9KWB6c4m7Nk9B6Rcg0sygTz0KdClzlvYZjau0=; b=FRy4c+l9p2tHPpEgzJWz/tRDbrGNBQxB9lTrtI18aZIYLXIMDFmV6RVmhOaXo6N2NX tb+S6F0zcmMOuSBhURtIJ2QZ8fPRHlJFHwARzr8dyFoKXAjc1suDV5GJ+SKGtHdWDQfL cS0Bxe6/7nL0S+NIB4l33ATzbtU1I95fbC1O69kYZVKx6r7uhf0gu4RnZdO3+TUPJSDx LbFpXT8TQJswnJZKJmRdpYZkSGsfeLnurly1DR3huS3u4TXf0ejlRK8I1FxCD5RXiX0x UfyHGYKT3py6hPKL1a85eLV/qePa7ftunnnfIteuIj6Mwop8F11dTS7iZU+S4vEEPvcf 7VqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:to:from:date:subject; bh=pqoQdI9KWB6c4m7Nk9B6Rcg0sygTz0KdClzlvYZjau0=; b=qW42yoSR/mPs5aG+sSGorJkKRfUSpvb4w/ZWD5wVp1kRuZH1bS1ZRd3N9dO+f7tY1o gAEffttKV5RcgzQPYeEW1gu3eN4sIlZ5QWQH/9JwKIwo7jBm0tgDJ+RO5t0khKYv6phI 4H+iZiy4usxGkI+nA4z8EOccHtS8eOAn+maA6z9ZOt7nDnFONHI/X+IuecOMX0GMVhA2 wkAnNB0g8W5wHmv2OlkwtRls9rjZrblwJeO4Rb2FJtxzC90ygBgnejFIdJhCWiaQHP+r NdGPP/r2pJr6jmbmJ8nlzxB91taVV0xSBUW2tgb7igE1OvdXTscHLPuHK2WvGAzuIFHD SVWA== X-Gm-Message-State: AOAM533ZY4JfjApRzZYgW4iJ8YZsNir7KHPic7ytzKatoZF6NuIoWcYA mBkPB4nCN306n29EaSODSk3k6fAbEicFhqCQnHg= X-Google-Smtp-Source: ABdhPJz63kUm0Xd6vkpyM8OcLuHWfKFsTtv78QXSXpNekd70isqXAMwtG3PdgoBkYk/KGh7Snjn1kQ== X-Received: by 2002:a17:90a:f3d5:: with SMTP id ha21mr3096305pjb.63.1613640158418; Thu, 18 Feb 2021 01:22:38 -0800 (PST) Return-Path: Received: from arrow.hsd1.ca.comcast.net (c-73-70-188-119.hsd1.ca.comcast.net. [73.70.188.119]) by smtp.gmail.com with ESMTPSA id i15sm598105pjl.54.2021.02.18.01.22.37 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Feb 2021 01:22:38 -0800 (PST) Message-ID: To: 9front@9front.org From: Michael Forney Date: Thu, 18 Feb 2021 08:58:35 +0000 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: immutable non-blocking engine template proxy-aware manager Subject: [9front] boot/efi: support framebuffer with 64-bit base address Reply-To: 9front@9front.org Precedence: bulk My thinkpad t14 (amd) uses a framebuffer at 0x460000000, which got truncated to 0x60000000 in *bootscreen. diff a93cbc303473d336ddd224ac6198bf4499a181b8 e7f36397ace2aaaf16a643080dcc439c5b061613 --- a/sys/src/boot/efi/sub.c Tue Feb 16 15:51:37 2021 +++ b/sys/src/boot/efi/sub.c Thu Feb 18 00:58:35 2021 @@ -306,8 +306,8 @@ char* hexfmt(char *s, int i, uvlong a) { - if(i > 8){ - s = numfmt(s, 16, i-8, a>>32); + if(i > 8 || i == 0 && (a>>32) != 0){ + s = numfmt(s, 16, i ? i-8 : 0, a>>32); i = 8; } return numfmt(s, 16, i, a);