exec 5<>/dev/tcp/news.google.co.jp/80 echo -e "GET / HTTP/1.1\nHost: news.google.co.jp\n">&5 cat <&5よくよく考えたらman bashで以前に見かけていたような気もしないでもないが、きちんと把握してなかった。 OSレベルの機能ではないが、シェルレベルの実装でPlan9風にシェルからソケットが開けるのであった。 (この記事はこちらを参考にしました)
AVR上で動くARMエミュレータを実装してLinuxを起動するという頭のオカシイ記事を読んで感動したのだが、よくよく読むとそのARMエミュレータそのものも中々面白そうである。 (和訳はこちら:本の虫: GNU/Linuxを動かせる最低スペックはATmega) エミュレート対象のCPUはARMv5TE、なぜかThumbまでサポート UARTなどの周辺デバイスは独自実装ではなく、Intel XScale PXA255 SoCをエミュレート 但しSDのエミュレーションが遅すぎたのでpvdiskという準仮想化ドライバを実装 AVR上だけではなくPC上でも動作(恐らくLinux上という事だと思われる。OSXだとビルドエラーになる) コードサイズは非常にコンパクトで9056行 Makefileを見る限り標準ライブラリ以外何もリンクしてない Linuxカーネルには手を加えずに動いていると推測される(pv
main()で一通りの初期化が終わって/sbin/initを起動する準備が整ったら、start_init()がfork()される: if (fork1(l, 0, SIGCHLD, NULL, 0, start_init, NULL, NULL, &initproc)) panic("fork init"); start_init()の流れを順に見ていく。 /* * Now in process 1. */ strncpy(p->p_comm, "init", MAXCOMLEN); proc構造体のプロセス名のフィールドにinitと書き込んでいる。 /* * Wait for main() to tell us that it's safe to exec. */ mutex_enter(proc_lock); while (start_init_exec == 0) cv_wait(&
とりあえず色々みてみた。 lspci $ lspci 00:00.0 Host bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D DMI2 (rev 01) 00:01.0 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 1 (rev 01) 00:02.0 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 2 (rev 01) 00:02.2 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v
今まで使っていた開発環境が使えなくなったので、OpenBSD/sgiのクロス開発環境を構築し直した。 以下作業メモ。 OpenBSDのインストール VMware Server 1.0をWindowsマシンにインストール メモリ256MB、HD 8GB、OS FreeBSD、CPU 1個でVMを新規作成 ftp://ftp.jaist.ac.jp/pub/OpenBSD/4.5/i386/cd45.isoをダウンロードしてきてVMのCD-ROMにセット http://www.openbsd.org/faq/faq4.htmlに従いインストールを開始 忌々しいdisklabelでは、 c: 16777216 0 unusedと表示された。 8192MBのHDで16777216セクタという事は、16777216セクタ/8192MB=2048セクタ/MBと計算出来る。 ここではswap領域としてb
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く