Skip to content

Instantly share code, notes, and snippets.

View toku-sa-n's full-sized avatar
🈳

Hiroki Tokunaga toku-sa-n

🈳
View GitHub Profile
@toku-sa-n
toku-sa-n / asmhead.asm
Created February 25, 2020 05:49
asm/head.asm
BOTPAK EQU 0x00501000 ; bootpackのロード先
; BOOT_INFO関係
CYLS EQU 0x0ff0 ; ブートセクタが設定する
LEDS EQU 0x0ff1
ORG 0xc200
%include "vbe.asm"
@toku-sa-n
toku-sa-n / asmpaging.asm
Created February 25, 2020 05:52
asm/paging.asm
; Initialize page directory and page tables with 0
MOV EAX, 0
DIR EQU 0x00100000
MOV EDX, DIR
NUM_ALL_ENTRIES EQU 1024 + 1024 * 1024
MOV ECX, NUM_ALL_ENTRIES
@toku-sa-n
toku-sa-n / asmvbe.asm
Created February 25, 2020 05:52
asm/vbe.asm
VBE EQU 0x9000
BPP EQU 0x0ff2 ; 色数に関する情報。何ビットカラーか?
SCRNX EQU 0x0ff4 ; 解像度のX
SCRNY EQU 0x0ff6 ; 解像度のY
VRAM EQU 0x0ff8 ; グラフィックバッファの開始番地
VBEMODE EQU 0x0ffc ; VBE mode number. word size
VBE_INFO_SIZE EQU 0x0200
; Get VBE Info
MOV AX,VBE
@toku-sa-n
toku-sa-n / log
Created February 26, 2020 02:23
log
SMM: enter
EAX=00000001 EBX=00000000 ECX=02000000 EDX=02000628
ESI=0000000b EDI=02000000 EBP=00000007 ESP=00006d90
EIP=000eb78e EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
CS =0008 00000000 ffffffff 00cf9b00 DPL=0 CS32 [-RA]
SS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
DS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
FS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
GS =0010 00000000 ffffffff 00cf9300 DPL=0 DS [-WA]
@toku-sa-n
toku-sa-n / asmipl.asm
Created February 26, 2020 02:37
asm/ipl.asm
; 定義
CYLS EQU 10
; このプログラムが読み込まれる場所の指定
ORG 0x7c00
; FAT12のための記述
JMP entry
DB 0x90
DB "HELLOIPL" ; ブートセクタの名前
@toku-sa-n
toku-sa-n / bochs_log
Created February 26, 2020 04:48
bochs_log
00000000000i[ ] LTDL_LIBRARY_PATH not set. using compile time default '/usr/lib64/bochs/plugins'
00000000000i[ ] BXSHARE not set. using compile time default '/usr/share/bochs'
00000000000i[ ] lt_dlhandle is 0x55acfdf11a20
00000000000i[PLUGIN] loaded plugin libbx_unmapped.so
00000000000i[ ] lt_dlhandle is 0x55acfdf12c90
00000000000i[PLUGIN] loaded plugin libbx_biosdev.so
00000000000i[ ] lt_dlhandle is 0x55acfdf165c0
00000000000i[PLUGIN] loaded plugin libbx_speaker.so
00000000000i[ ] lt_dlhandle is 0x55acfdf173c0
00000000000i[PLUGIN] loaded plugin libbx_extfpuirq.so
@toku-sa-n
toku-sa-n / log
Created September 17, 2020 03:02
log
Compiling core v0.0.0 (/home/hiroki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Running `rustc --crate-name core --edition=2018 /home/hiroki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=80ccb2f950ca5996 -C extra-filename=-80ccb2f950ca5996 --out-dir /home/hiroki/Downloads/foo/target/x86_64-unknown-myos/debug/deps --target /home/hiroki/Downloads/foo/x86_64-unknown-myos.json -Z force-unstable-if-unmarked -L dependency=/home/hiroki/Downloads/foo/target/x86_64-unknown-myos/debug/deps -L dependency=/home/hiroki/Downloads/foo/target/debug/deps --cap-lints allow`
error[E0527]: pattern requires 0 elements but array has 4
--> /home/hiroki/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/sync/atomic.rs:1312:25
|
1312
@toku-sa-n
toku-sa-n / stdin
Created September 24, 2020 02:46
stdin
nightly manifest 2020-09-22: 32 B / 40 B [===========>---] 80.00 % 3.47 MB/s 0s nightly manifest 2020-09-22: 40 B / 40 B [=================] 100.00 % 1.58 MB/s nightly manifest 2020-09-23: 32 B / 40 B [===========>---] 80.00 % 3.49 MB/s 0s nightly manifest 2020-09-23: 40 B / 40 B [=================] 100.00 % 1.59 MB/s
@toku-sa-n
toku-sa-n / stdin
Created September 24, 2020 02:47
stdin
checking nightly-2020-09-23 from the currently installed default nightly toolchain as the last failure
installing nightly-2020-09-23
testing...
RESULT: nightly-2020-09-23, ===> Yes
installing nightly-2020-09-21
testing...
RESULT: nightly-2020-09-21, ===> No
installing nightly-2020-09-23
@toku-sa-n
toku-sa-n / stdin
Created September 24, 2020 03:05
stdin
nightly manifest 2020-09-22: 32 B / 40 B [==========>--] 80.00 % 100.27 KB/s 0s nightly manifest 2020-09-22: 40 B / 40 B [===============] 100.00 % 119.28 KB/s nightly manifest 2020-09-23: 32 B / 40 B [===========>---] 80.00 % 3.99 MB/s 0s nightly manifest 2020-09-23: 40 B / 40 B [=================] 100.00 % 1.94 MB/s