Skip to content

Instantly share code, notes, and snippets.

@tsutsui
tsutsui / sun3-mmu-spec.txt
Created Aug 12, 2020
Sun3 (not sun3x) MMU design memo
View sun3-mmu-spec.txt
Sun3 (not sun3x) MMU design memo
================================
Written by Izumi Tsutsui (20200812)
Quick reversed from NetBSD/sun3 src/sys/arch/sun3/sun3/pmap.c implementation.
VA space
--------
@tsutsui
tsutsui / romcons.c
Created Aug 8, 2020
NetBSD/news68k ROM console driver https://twitpic.com/5rcrjj
View romcons.c
/* $NetBSD: romcons.c,v 1.3 2014/07/25 08:10:34 dholland Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
* Copyright (C) 1995, 1996 TooLs GmbH.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
View news68k-romcons-wskbd.c.diff
--- /s/cvs/src/sys/dev/wscons/wskbd.c 2019-02-05 19:04:49.000000000 +0900
+++ wskbd.c 2019-04-29 01:07:51.703414289 +0900
@@ -705,6 +705,27 @@ wskbd_input(device_t dev, u_int type, in
return;
}
#endif
+#ifdef news68k
+#include "romcons.h"
+#if NROMCONS > 0
+ if (sc->sc_translating) {
View xdpyinfo-Xsun-1.10-Xsun-1.20.diff
--- xdpyinfo.110 2020-08-01 15:59:24.263700518 +0900
+++ xdpyinfo.120 2020-08-01 16:04:19.931080855 +0900
@@ -1,7 +1,7 @@
name of display: :0
version number: 11.0
vendor string: The Xorg Foundation
-vendor release number: 11006000
+vendor release number: 12005000
maximum request size: 16777212 bytes
motion buffer size: 256
@tsutsui
tsutsui / gist:c87f8c13a0d98b1e275a1bccc17854c6
Created Jul 31, 2020
leftover of /usr/X11R7/lib/X11/xkb/keycodes/dreamcast
View gist:c87f8c13a0d98b1e275a1bccc17854c6
// $NetBSD$
//
//Copyright 2010 Izumi Tsutsui
//
//Permission to use, copy, modify, distribute, and sell this software and its
//documentation for any purpose is hereby granted without fee, provided that
//the above copyright notice appear in all copies and that both that
//copyright notice and this permission notice appear in supporting
//documentation.
//
@tsutsui
tsutsui / Xsun-xmodmap-pk-output.txt
Created Jul 23, 2020
xmodmap-pk output on Xorg-Server-1.20'filed Xsun server on sun3/60 with bwtwo running NetBSD/sun3 9.0
View Xsun-xmodmap-pk-output.txt
There are 10 KeySyms per KeyCode; KeyCodes range from 8 to 255.
KeyCode Keysym (Keysym) ...
Value Value (Name) ...
8 0xff69 (Cancel) 0x0000 (NoSymbol) 0xffc8 (F11)
9
10 0xff66 (Redo) 0x0000 (NoSymbol) 0xffc9 (F12)
11
12 0xffbe (F1) 0x0000 (NoSymbol) 0xffbe (F1)
@tsutsui
tsutsui / xorg-server_mfb.diff
Last active Jul 14, 2020
Fixes to make Xorg black and white monochrome server print the mouse cursor and twm window titlebars etc.
View xorg-server_mfb.diff
? xorg-server.old/dist/hw/sun
Index: xorg-server/dist/fb/fb.h
===================================================================
RCS file: /cvsroot/xsrc/external/mit/xorg-server/dist/fb/fb.h,v
retrieving revision 1.1.1.6
diff -u -p -d -r1.1.1.6 fb.h
--- xorg-server/dist/fb/fb.h 31 Dec 2018 09:36:09 -0000 1.1.1.6
+++ xorg-server/dist/fb/fb.h 14 Jul 2020 13:41:45 -0000
@@ -734,6 +734,9 @@ fbResolveColor(unsigned short *pred,
extern _X_EXPORT Bool
View xorg-server-Xsun_src.diff
Index: external/mit/xorg/server/xorg-server.old/hw/Makefile
===================================================================
RCS file: /cvsroot/src/external/mit/xorg/server/xorg-server.old/hw/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -d -r1.1.1.1 Makefile
--- external/mit/xorg/server/xorg-server.old/hw/Makefile 10 Jun 2016 03:42:14 -0000 1.1.1.1
+++ external/mit/xorg/server/xorg-server.old/hw/Makefile 16 Jul 2020 13:57:39 -0000
@@ -11,6 +11,12 @@ SUBDIR+= xfree86
SUBDIR+=netbsd/x68k
.endif
View sunKbd.c.log
# compile sun/sunKbd.o
/s/netbsd-9/src/obj.sun3/tooldir.NetBSD-9.0-i386/bin/m68k--netbsdelf-gcc -O2 -fno-reorder-blocks -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wno-uninitialized -Wno-maybe-uninitialized -Werror -fPIE -fno-strict-aliasing --sysroot=/s/netbsd-9/src/obj.sun3/destdir.sun3 -DSHAPE -DXKB -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DSINGLEDEPTH -DXvExtension -DXFree86Server -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DNDEBUG -DXORG_VERSION_CURRENT="(((1) * 10000000) + ((10) * 100000) + ((6) * 1000) + 0)" -I/s/netbsd-9/src/../xsrc/external/mit/xorg-server.old/dist -I/s/netbsd-9/src/../xsrc/external/mit/xorg-server.old/dist/include -I/s/netbsd-9/src/../xsrc/external/mit/xorg-server.old/dist/hw/sun -I/s/netbsd-9/src/../xsrc/
@tsutsui
tsutsui / Xorg.0.log
Created Jun 21, 2020
Xorg.0.log on Panasonic CF-R3 with Intel(R) i855GM running NetBSD/i386 9.0
View Xorg.0.log
[ 495.064]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[ 495.064] Build Operating System: NetBSD/i386 9.0_STABLE - The NetBSD Foundation, Inc.
[ 495.065] Current Operating System: NetBSD teokure 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
[ 495.065] Build Date: 03 March 2019 07:11:23AM
[ 495.065]
[ 495.066] Current version of pixman: 0.38.4
[ 495.067] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
You can’t perform that action at this time.