Skip to content

Instantly share code, notes, and snippets.

Avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / netbsd-luna88k-omrasops.c-gxemul.diff
Created Jul 28, 2022
workaround for GXemul 0.7.0 to run unofficial NetBSD/luna88k with 1bpp framebuffer by avoid ROP and PLANEMASK ops
View netbsd-luna88k-omrasops.c-gxemul.diff
diff --git a/sys/arch/luna88k/dev/omrasops.c b/sys/arch/luna88k/dev/omrasops.c
index 574f3a013fcf..a549d1fe76f4 100644
--- a/sys/arch/luna88k/dev/omrasops.c
+++ b/sys/arch/luna88k/dev/omrasops.c
@@ -135,23 +135,16 @@ om1_putchar(void *cookie, int row, int startcol, u_int uc, long attr)
rmask = ALL1BITS << (-width & ALIGNMASK);
if (width <= BLITWIDTH) {
lmask &= rmask;
- /* set lmask as ROP mask value, with THROUGH mode */
- ((volatile uint32_t *)OMFB_ROPFUNC)[ROP_THROUGH] = lmask;
@tsutsui
tsutsui / nono-netbsd-luna88k-pmap-debug-cmmu-flush.log
Created Jul 24, 2022
experimental NetBSD/luna88k kernel debug output dmesg log with "#define PMAP_CON_DEBUG (CD_ENT|CD_RM)" and extra cache flush in pmap_enter(9)
View nono-netbsd-luna88k-pmap-debug-cmmu-flush.log
mirage-% nono
NetBSD/luna88k (LUNA-88K) boot, Revision 0.0 (tsutsui@mirage, Mon Jul 11 23:09:08 JST 2022)
Press return to boot now, any other key for boot menu
booting sd(0,0)netbsd - starting in 3 seconds.
type "help" for help.
boot> boot le()netbsd
Booting le()netbsd
le0: Ethernet address 02:00:01:8c:0a:90
net_open: client addr: 192.168.20.73
@tsutsui
tsutsui / nono-netbsd-luna88k-pmap-debug-ENT.log
Created Jul 21, 2022
experimental NetBSD/luna88k kernel debug output dmesg log with "#define PMAP_CON_DEBUG CD_ENT"
View nono-netbsd-luna88k-pmap-debug-ENT.log
NetBSD/luna88k (LUNA-88K) boot, Revision 0.0 (tsutsui@mirage, Mon Jul 11 23:09:08 JST 2022)
Press return to boot now, any other key for boot menu
booting sd(0,0)netbsd - starting in 3 seconds.
type "help" for help.
boot> boot le()netbsd -s
Booting le()netbsd
le0: Ethernet address 02:00:01:8c:0a:90
net_open: client addr: 192.168.20.73
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.20.1
@tsutsui
tsutsui / NetBSD-x68k-ite-dec-special-graphics.diff
Created Jun 18, 2022
WIP diff to support DEC special graphics characters (i.e. terminfo smacs/rmacs/acsc support) using dumb ASCII characters, mostly for box drawing on sysinst(8)
View NetBSD-x68k-ite-dec-special-graphics.diff
Index: sys/arch/x68k/dev/ite.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x68k/dev/ite.c,v
retrieving revision 1.68
diff -u -p -d -r1.68 ite.c
--- sys/arch/x68k/dev/ite.c 28 May 2022 10:36:22 -0000 1.68
+++ sys/arch/x68k/dev/ite.c 18 Jun 2022 13:50:03 -0000
@@ -1430,6 +1430,10 @@ iteputchar(int c, struct ite_softc *ip)
ip->G0 = CSET_JISROMA;
ip->escape = 0;
@tsutsui
tsutsui / NetBSD-x68k-fix-sysinst-borders.diff
Created Jun 18, 2022
WIP diff to fix mangled sysinst menu borders on NetBSD/x68k 9.99.97
View NetBSD-x68k-fix-sysinst-borders.diff
Index: distrib/utils/libhack/Makefile.inc
===================================================================
RCS file: /cvsroot/src/distrib/utils/libhack/Makefile.inc,v
retrieving revision 1.39
diff -u -p -d -r1.39 Makefile.inc
--- distrib/utils/libhack/Makefile.inc 25 May 2021 10:58:41 -0000 1.39
+++ distrib/utils/libhack/Makefile.inc 18 Jun 2022 00:17:31 -0000
@@ -48,9 +48,22 @@ TERMINFO_SRC!= cd ${HACKSRC}/../../../li
TERMINFO_PATH!= cd ${HACKSRC}/../../../lib/libterminfo && \
${MAKE} -v .OBJDIR
View sysinst_check-ondisk-label-even-if-DISKLABEL_NO_ONDISK_VERIFY-is-specified.diff
Index: usr.sbin/sysinst/disklabel.c
===================================================================
RCS file: /cvsroot/src/usr.sbin/sysinst/disklabel.c,v
retrieving revision 1.44
diff -u -p -d -r1.44 disklabel.c
--- usr.sbin/sysinst/disklabel.c 8 Aug 2021 21:50:10 -0000 1.44
+++ usr.sbin/sysinst/disklabel.c 15 Jun 2022 16:31:13 -0000
@@ -198,16 +198,7 @@ disklabel_parts_read(const char *disk, d
int fd;
char diskpath[MAXPATHLEN];
@tsutsui
tsutsui / mikutter-5.0-NetBSD-earmv6hf.log
Created Dec 31, 2021
mikutter 5.0 が NetBSD/evbarm earmv6hf 9.99.92 で落ちる
View mikutter-5.0-NetBSD-earmv6hf.log
/usr/pkg/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.9/lib/gobject-introspection/loader.rb:614: [BUG] Segmentation fault
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [armv6-netbsdelf-eabihf]
-- Control frame information -----------------------------------------------
c:0021 p:---- s:0115 e:000114 CFUNC :invoke
c:0020 p:0127 s:0110 e:000109 METHOD /usr/pkg/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.9/lib/gobject-introspection/loader.rb:614
c:0019 p:0010 s:0101 e:000100 BLOCK /usr/pkg/lib/ruby/gems/2.7.0/gems/gobject-introspection-3.4.9/lib/gobject-introspection/loader.rb:529 [FINISH]
c:0018 p:0153 s:0096 E:000750 METHOD /usr/pkg/share/mikutter/plugin/gtk3/widget/miraclepainter.rb:474
c:0017 p:0023 s:0090 e:000088 BLOCK /usr/pkg/share/mikutter/plugin/gtk3/widget/miraclepainter.rb:668 [FINISH]
c:0016 p:---- s:0086 e:000085 CFUNC :save
@tsutsui
tsutsui / mikutter-5.0.log
Created Dec 29, 2021
testing pkgsrc/net/mikutter 5.0.0
View mikutter-5.0.log
% mikutter --debug
notice: {MIKUTTER_DIR}/core/configloader.rb:43:in `boot': load setting data from /home/tsutsui/.mikutter/settings/setting.yml
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/uitranslator/uitranslator.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/skin/skin.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/gui/gui.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/activity/activity.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/achievement/achievement.rb
notice: {MIKUTTER_DIR}/core/miquire_plugin.rb:154:in `block in load': plugin loaded: {MIKUTTER_DIR}/plugin/gtk3/gtk3.rb
Traceback (most recent call last):
25: from /usr/pkg/share/mikutter/mikutter.rb:53:in `<main>'
@tsutsui
tsutsui / tl_scrollbar.diff
Created Dec 21, 2021
mikutter 5.0.0 でタイムラインのスクロールバーを常に表示するようにしたい
View tl_scrollbar.diff
diff --git a/plugin/gtk3/widget/timeline.rb b/plugin/gtk3/widget/timeline.rb
index e75c17c2..3efc6f6f 100644
--- a/plugin/gtk3/widget/timeline.rb
+++ b/plugin/gtk3/widget/timeline.rb
@@ -67,6 +67,7 @@ module Plugin::Gtk3
add @postbox
add(Gtk::ScrolledWindow.new.tap do |sw|
sw.set_policy :never, :automatic
+ sw.overlay_scrolling = UserConfig[:tl_scrollbar]
sw.expand = true
@tsutsui
tsutsui / list.rb.diff
Created Dec 20, 2021
https://github.com/mikutter/streamin の修正で https://github.com/mikutter/list が荒ぶるのをなんとかして見るテスト
View list.rb.diff
diff --git a/list.rb b/list.rb
index 43ab6b3..0cffc5d 100644
--- a/list.rb
+++ b/list.rb
@@ -39,7 +39,9 @@ Plugin.create :list do
# リストのタイムラインをリアルタイム更新する
on_appear do |messages|
using_lists.each do |list|
- Plugin.call(:extract_receive_message, datasource_slug(list), messages.lazy.select(&list.method(:related?))) end end
+ Plugin.call(:extract_receive_message, datasource_slug(list), messages.lazy.select(&list.method(:related?)).select { |m| !m.retweet_source || list.member?(m.user) } )