9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] boot/efi: support framebuffer with 64-bit base address
@ 2021-02-18  8:58 Michael Forney
  2021-02-18 20:23 ` [9front] " Anthony Martin
  2021-02-20 11:56 ` [9front] " cinap_lenrek
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Forney @ 2021-02-18  8:58 UTC (permalink / raw)
  To: 9front


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-20 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18  8:58 [9front] boot/efi: support framebuffer with 64-bit base address Michael Forney
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

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