{{category FreeBSD}} {{category 組み込み}} !!FreeBSD用のconfig とりあえずコンパイルを通したいのでconfig/linuxを参考にconfig/freebsdをつくる :config/freebsd/cpu_config.h sense_lock: sigset_tの要素は __val ではなく __bits なので変更(/usr/include/sys/_sigset.hを参照)本当は、マクロ使った方がきれいなのかな? :systask/freebsd_serial.c: systask/linux_serial.cからコピー #include -> #include :config/cpu_context.h activate_context: JB_PCをJMPBUF_PC JB_SPをJMPBUF_SPに :config/sys_config.h: [参照元|http://homepage1.nifty.com/~tetsu/ruby/sd/2000/7.html]より < #define JMPBUF_PC JB_PC < #define JMPBUF_SP JB_SP > #define JMPBUF_PC 0 > #define JMPBUF_SP 2 linuxの/usr/include/bits/setjmp.hによるとJB_PC=5、JB_SP=4と定義してある