Skip to content

Instantly share code, notes, and snippets.

View tsutsui's full-sized avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / pkgsrc-emulators-nono-options-pulseaudio.diff
Created August 29, 2026 15:50
add options.mk for alsa and pulseaudio to pkgsrc/emulators/nono 1.8.3
diff --git a/emulators/nono/Makefile b/emulators/nono/Makefile
index 4745ebd763ff..e9b360c1719b 100644
--- a/emulators/nono/Makefile
+++ b/emulators/nono/Makefile
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.70 2026/07/25 15:06:59 jun Exp $
-DISTNAME= nono-1.8.2
+DISTNAME= nono-1.8.3
CATEGORIES= emulators
@tsutsui
tsutsui / NetBSD_news68k_Keyboard_Console_Polling_Design_20260823_002.md
Last active August 22, 2026 23:18
NetBSD/news68k の既存 `wskbd(9)` console keyboard path を normal autoconfiguration 前から利用可能にする検討の設計書

NetBSD/news68k Keyboard Console Polling Design

Revision: 20260823_002
Status: Accepted — implementation authorized
Target: NetBSD/news68k keyboard console path; initial validation on NEWS1700 / NWS-1750
Date: 2026-08-23

1. 目的

本設計書は、NetBSD/news68k の既存 wskbd(9) console keyboard path を normal autoconfiguration 前から利用可能にし、consinit() 直後の DDB を含む完全な polling console input を成立させるための設計を定義する。

@tsutsui
tsutsui / FreeWnn-1.1.1-a023-gcc15.diff
Created July 9, 2026 18:18
Patch to build FreeWnn-1.1.1-a023 with gcc15 (i.e. with the default `-std=gnu23 -Werror=incompatible-pointer-types`)
diff --git a/PubdicPlus/pod.c b/PubdicPlus/pod.c
index 009daa7..315b96d 100644
--- a/PubdicPlus/pod.c
+++ b/PubdicPlus/pod.c
@@ -154,17 +154,18 @@ static struct descpack *searchdesc (Wchar *hin);
static void store_description (void);
static long internkind (Wchar *s);
static void listkinds (void);
-static int kindcompar (struct kindpack *k1, struct kindpack *k2);
+static int kindcompar (const void *k1, const void *k2);
[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024, 2025, 2026
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 11.0_RC2 (GENERIC64_INSECURE) #6: Wed Mar 18 20:43:08 JST 2026
ok
[ 1.0000000] uboot: args 0, 0xc42, 0x2eff6a00, 0x1000040
[ 1.0000000] NetBSD/evbarm (fdt) booting ...
[ 1.0000000] FDT /memory @ 0x0 size 0x3b400000
[ 1.0000000] FDT /memory @ 0x40000000 size 0xbc000000
[ 1.0000000] initarm: memory start 0 end fc000000 (len fc000000)
[ 1.0000000] initarm: fdt_build_bootconfig
[ 1.0000000] Usable memory:
[ 1.0000000] 1000 - 3b3fffff
[ 1.0000000] 40000000 - fbffffff

以下は、あなたが挙げた 3 つの参照(デバドラ書き方・genfb_pci.c・genfb_machdep.c)の“やり方”に合わせて、ISA VGA(VESA LFB 前提)で genfb を wsdisplay フレームバッファコンソールとして使うための

  • src/sys/dev/isa/genfb_isa.c の設計書(要点)
  • 実装(KNF寄り)

を、NetBSD/x86(i386/amd64)限定としてまとめたものです。


設計書:genfb_isa の狙いと前提

@tsutsui
tsutsui / gpio_mmap_test.c
Created February 16, 2026 17:34
Raspberry Pi 3 GPIO test on NetBSD/evbarm
/*
* gpio_mmap_test.c
* Minimal Raspberry Pi GPIO test using GPIO access via /dev/mem mmap(2)
*
* Wiring:
* GPIO20 -> LED (1: on, 0: off)
*
* Build:
* cc -O2 -Wall -Wextra -o gpio_mmap_test gpio_mmap_test.c
*/
@tsutsui
tsutsui / NetBSD-flag-AA.diff
Created December 24, 2025 16:43
Update NetBSD flag ASCII Art in bootloaders
Index: sys/lib/libsa/bootcfg.c
===================================================================
RCS file: /cvsroot/src/sys/lib/libsa/bootcfg.c,v
retrieving revision 1.10
diff -u -p -d -r1.10 bootcfg.c
--- sys/lib/libsa/bootcfg.c 6 May 2025 18:16:12 -0000 1.10
+++ sys/lib/libsa/bootcfg.c 24 Dec 2025 16:34:02 -0000
@@ -291,11 +291,11 @@ print_bootcfg_banner(const char *bootpro
/* If the user has not specified a banner, print a default one. */
@tsutsui
tsutsui / gist:98ffed5534af93fd21bfdfee43d92187
Created December 23, 2025 12:50
HP9000/362,382 Ethernet
HP9000/362,382 Ethernet
@tsutsui
tsutsui / README.md
Last active December 7, 2025 03:31
p6psgmmlc — PC-6001 PSG音源ドライバ用 MMLコンパイラ README ドラフト

p6psgmmlc

PC-6001 PSG音源ドライバ用 MMLコンパイラ (C言語コマンドライン版)

  • 現在のバージョン: 0.1.0 (2025/12/07)
  • 更新履歴は 更新履歴 項を参照

これはなに?

よっしゅさん作の PC-6001用PSG音源ドライバ ver1.1c 向けの MMLソーステキストを、音源ドライバがそのまま演奏可能な