Skip to content

Instantly share code, notes, and snippets.

? diff
Index: sys/arch/amd64/amd64/vmm.c
===================================================================
RCS file: /cvs/src/sys/arch/amd64/amd64/vmm.c,v
retrieving revision 1.254
diff -u -p -r1.254 vmm.c
--- sys/arch/amd64/amd64/vmm.c 22 Sep 2019 08:47:54 -0000 1.254
+++ sys/arch/amd64/amd64/vmm.c 19 Oct 2019 15:38:42 -0000
@@ -168,6 +168,7 @@ int vmx_handle_cr4_write(struct vcpu *,
int vmx_handle_cr(struct vcpu *);
!
! Swap Caps_Lock and Control_L
!
!remove Shift = Shift_L
!remove 65 = space
!remove 36 = Return
remove Control = Control_L
keysym Control_L = Shift_L

ハードウェア仕様

部品

  1. FTDI231XS x 1(秋月)
  2. STM32F0x4 x 2(Mouser)
  3. コネクタ類 (digikey + 千石?)
  4. LT1117 x 1 (秋月)
  5. 649Ω抵抗 x 1 (digikey)
  6. TD62083 x 1 (秋月)
$2 = "name: timer_expire_exit\nID: 132\nformat:\n\tfield:unsigned short common_type;\toffset:0;\tsize:2;\tsigned:0;\n\tfield:unsigned char common_flags;\toffset:2;\tsize:1;\tsigned:0;\n\tfield:unsigned char common_preempt_count;\toffset:3;\tsize:1;\tsigned:0;\n\tfield:int common_pid;\toffset:4;\tsize:4;\tsigned:1;\n\n\tfield:void * timer;\toffset:8;\tsize:8;\tsigned:0;\n\nprint fmt: \"timer=%p\", REC->timer\n6;\tsize:8;\tsigned:0;\n\tfield:void * function;\toffset:24;\tsize:8;\tsigned:0;\n\nprint fmt: \"timer=%p function=%pf now=%lu\", REC->timer, REC->function,REC->now\nOFTIRQ, \"BLOCK\" }, { BLOCK_IOPOLL_SOFTIRQ, \"BLOCK_IOPOLL\" }, { TASKLET_SOFTIRQ, \"TASKLET\" }, { SCHED_SOFTIRQ, \"SCHED\" }, { HRTIMER_SOFTIRQ, \"HRTIMER\" }, { RCU_SOFTIRQ, \"RCU\" })\n\nd prev_state=%s%s ==> next_comm=%s next_pid=%d next_prio=%d\", REC->prev_comm, REC->prev_pid, REC->prev_prio, REC->prev_state & (1024-1) ? __print_flags(REC->prev_state & (1024-1), \"|\", { 1, \"S\"} , { 2, \"D\" }, { 4, \"T\" }, { 8, \"t\" }, { 16, \"Z\
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Shift_L
keycode 50 = Return
keysym space = Control_L
keysym Return = space
➜ ./scripts/build
Building into build/release.x64
GEN gen/include/osv/version.h
Using image config: /home/iorivur/src/OS/osv/images/default.py
Importing /home/iorivur/src/OS/osv/modules/cli/module.py
Importing /home/iorivur/src/OS/osv/modules/lua/module.py
Importing /home/iorivur/src/OS/osv/modules/ncurses/module.py
Importing /home/iorivur/src/OS/osv/modules/libedit/module.py
Importing /home/iorivur/src/OS/osv/modules/httpserver/module.py
Importing /home/iorivur/src/OS/osv/modules/openssl/module.py
@iori-yja
iori-yja / .xmodmap
Created March 20, 2015 08:45
キーマップ
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Shift_L
!keysym Shift_L = Return
keycode 50 = Return
GHCi, version 7.8.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import qualified Crypto.Random.AESCtr as C
Prelude C> C.
C.AESRNG C.make C.makeSystem
Prelude C> C.make
C.make C.makeSystem
Prelude C> c <- C.makeSystem
URxvt.perl-ext: default,url-select,tabbed
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.url-select.launcher: /usr/bin/chromium -new-tab
URxvt.url-select.underline: true
URxvt.tabbed.tabbar-fg: 2
URxvt.tabbed.tabbar-bg: #001020
URxvt.tabbed.tab-fg: 3
URxvt.tabbed.tab-bg: #001020
21:09% cat g.c /tmp/test
#include <stdio.h>
int
main(void)
{
const int foo = 3;
char bar[foo];
for (int i = 0; i < foo; i ++) {
bar [i] = 0x30;