9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Michael Forney <mforney@mforney.org>
To: 9front@9front.org
Subject: [9front] boot/efi: support framebuffer with 64-bit base address
Date: Thu, 18 Feb 2021 08:58:35 +0000	[thread overview]
Message-ID: <C0D9A13E6FF1D15A9EAEE323C406407A@arrow.hsd1.ca.comcast.net> (raw)


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);

             reply	other threads:[~2021-02-18  9:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-18  8:58 Michael Forney [this message]
2021-02-18 20:23 ` [9front] " Anthony Martin
2021-02-18 21:54   ` Michael Forney
2021-02-20 11:48   ` cinap_lenrek
2021-02-20 11:56 ` [9front] " cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C0D9A13E6FF1D15A9EAEE323C406407A@arrow.hsd1.ca.comcast.net \
    --to=mforney@mforney.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).