(續 08-11-15@GMT-6)尋找合理懷疑對象:
root@intrepid:~/jfbterm-0.4.7# grep "KD_GRAPHICS" *
vterm.c: ioctl(0, KDSETMODE, KD_GRAPHICS);
root@intrepid:~/jfbterm-0.4.7# grep "KD_TEXT" *
main.c: if (mode == KD_TEXT) {
vterm.c: ioctl(0, KDSETMODE, KD_TEXT);
root@intrepid:~/jfbterm-0.4.7# grep mmio *
acconfig.h:/* Quit if mmap(mmio) is failed */
ChangeLog: mmap(mmio)$N%3!<%I$rJQ99$7$F$_$^$7$?!#
ChangeLog: "Cannot mmap(mmio)."$,H/@8$7$F$bL5;k$9$k;v$,$G$-$k$h$&$K$7$F$_
config.h:/* Quit if mmap(mmio) is failed */
config.h.in:/* Quit if mmap(mmio) is failed */
config.log:configure:6444: checking whether to enable check-mmio-error
configure: --enable-check-mmio-error Check mmap(mmio) return code default no
configure:# Check whether --enable-check-mmio-error was given.
configure:if test "${enable_check_mmio_error+set}" = set; then
configure: enableval=$enable_check_mmio_error;
configure: enable_check_mmio_error=no
configure:{ echo "$as_me:$LINENO: checking whether to enable check-mmio-error" >&5
configure:echo $ECHO_N "checking whether to enable check-mmio-error... $ECHO_C" >&6; }
configure:if test x$enable_check_mmio_error = xyes; then
configure.in:AC_ARG_ENABLE(check-mmio-error, [ --enable-check-mmio-error Check mmap(mmio) return code [default no]],,enable_check_mmio_error=no)
configure.in:AC_MSG_CHECKING(whether to enable check-mmio-error)
configure.in:if test x$enable_check_mmio_error = xyes; then
fbcommon.c: print_message("MMIO : %p L=%u\n", fbfs->mmio_start, fbfs->mmio_len);
fbcommon.c: p->moff = (u_long)(fb_fix.mmio_start) & (~PAGE_MASK);
fbcommon.c: p->mlen = (fb_fix.mmio_len + p->moff + ~PAGE_MASK) & PAGE_MASK;
fbcommon.c: p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE,
fbcommon.c: if ((long)p->mmio == -1) {
fbcommon.c: die("cannot mmap(mmio)");
fbcommon.c: print_message("cannot mmap(mmio) : %s\n", strerror(errno));
fbcommon.c: p->mmio = (char *)p->mmio + p->moff;
fbcommon.c: print_message("mmio ; %d - %p\n", p->mlen, p->mmio);
fbcommon.c: if ((long)p->mmio != -1) {
fbcommon.c: munmap((caddr_t)((u_long)p->mmio & PAGE_MASK), p->mlen);
fbcommon.h: u_char* mmio;