thunk_printf_debug
thunk_printf_debug("cpu_switchto [%s,pid=%d,lid=%d] -> [%s,pid=%d,lid=%d]\n",
thunk_printf_debug(" oldpcb uc_link=%p, uc_stack.ss_sp=%p, "
thunk_printf_debug(" newpewcb uc_link=%p, uc_stack.ss_sp=%p, "
thunk_printf_debug("cpu_switchto: returning %p (was %p)\n", ci->ci_stash, oldlwp);
thunk_printf_debug("cpu_dumpconf\n");
thunk_printf_debug("cpu_getmcontext\n");
thunk_printf_debug("cpu_mcontext_validate\n");
thunk_printf_debug("cpu_setmcontext\n");
thunk_printf_debug("cpu_lwp_free (dummy)\n");
thunk_printf_debug("cpu_lwp_free2\n");
thunk_printf_debug("cpu_lwp_trampoline called with func %p, arg %p\n", (void *) func, arg);
thunk_printf_debug("cpu_lwp_fork [%s/%p] -> [%s/%p] stack=%p stacksize=%d\n",
thunk_printf_debug("\tfin\n");
thunk_printf_debug("error!\n");
thunk_printf_debug("\tfin\n");
thunk_printf_debug("error!\n");
void thunk_printf_debug(const char *fmt, ...) __attribute__((__format__(__printf__, 1, 2)));
thunk_printf_debug("\n%s : %p + %d\n", __func__, dst, (int) size);
thunk_printf_debug("%s: [%p .. %p]\n", __func__,
thunk_printf_debug("pmap_remove() called from "
thunk_printf_debug("pmap_remove_all() dummy called\n");
thunk_printf_debug("pmap_protect() called from "
thunk_printf_debug("pmap_unwire called va = %p\n", (void *) va);
thunk_printf_debug("pmap_extract: extracting va %p\n", (void *) va);
thunk_printf_debug("pmap_extract: invalid va issued\n");
thunk_printf_debug("pmap_kenter_pa : v %p, p %p, prot %d, flags %d\n",
thunk_printf_debug("pmap_copy (dummy)\n");
thunk_printf_debug("pmap_update (dummy)\n");
thunk_printf_debug("pmap_activate for lwp %p, pmap = %p\n", l, pmap);
thunk_printf_debug("pmap_DEactivate for lwp %p, pmap = %p\n", l, pmap);
thunk_printf_debug("pmap_zero_page: pa %p\n", (void *) pa);
thunk_printf_debug("pmap_copy_page: pa src %p, pa dst %p\n",
thunk_printf_debug("pmap_page_protect page %"PRIiPTR" to prot %d\n", ppn, prot);
thunk_printf_debug("pmap_clear_modify page %"PRIiPTR"\n", ppn);
thunk_printf_debug("pmap_clear_reference page %"PRIiPTR"\n", ppn);
thunk_printf_debug("pmap_is_modified page %"PRIiPTR" : %s\n", ppn, rv?"yes":"no");
thunk_printf_debug("pmap_is_referenced page %"PRIiPTR"\n", ppn);
thunk_printf_debug("pmap_growkernel: till %p (adding %"PRIu64" KB)\n",
thunk_printf_debug("Information retrieved from system and elf image\n");
thunk_printf_debug("min VM address at %p\n", (void *) vm_min_addr);
thunk_printf_debug("start kernel at %p\n", _start);
thunk_printf_debug(" end kernel at %p\n", &etext);
thunk_printf_debug(" end of init. data at %p\n", &edata);
thunk_printf_debug("1st end of data at %p\n", &end);
thunk_printf_debug("CUR end data at %p\n", thunk_sbrk(0));
thunk_printf_debug("Creating memory mapped backend\n");
thunk_printf_debug("claiming %"PRIu64" KB of pv_table for "
thunk_printf_debug("tlb va->pa lookup table is %"PRIu64" KB for "
thunk_printf_debug("pv_table initialised correctly, mmap works\n");
thunk_printf_debug("kernel tlb entries initialized correctly\n");
thunk_printf_debug("kernel pmap l1 table initialised correctly\n");
thunk_printf_debug("pv_table mem added to the kernel pmap\n");
thunk_printf_debug("kernel tlb entries mem added to the kernel pmap\n");
thunk_printf_debug("kernel pmap l1 mem added to the kernel pmap\n");
thunk_printf_debug("kernel pmap entries mem added to the kernel pmap\n");
thunk_printf_debug("kernel mem added to the kernel pmap\n");
thunk_printf_debug("pmap_create\n");
thunk_printf_debug("\tpmap %p\n", pmap);
thunk_printf_debug("pmap_destroy %p\n", pmap);
thunk_printf_debug("pmap_reference %p\n", (void *) pmap);
thunk_printf_debug("pv_get: multiple mapped page ppn %"PRIdPTR", "
thunk_printf_debug("pmap_fault pmap %p, va %p\n", pmap, (void *) va);
thunk_printf_debug("%s: tlb fault page lpn %"PRIiPTR"\n",
thunk_printf_debug("%s: prot = %d, cur_prot = %d, diff = %d\n",
thunk_printf_debug("page_activate: (va %p, pa %p, prot %d, ppl %d) -> %p\n",
thunk_printf_debug("page_deactivate: (va %p, pa %p, ppl %d) -> %p\n",
thunk_printf_debug("pmap_update_page: ppn %"PRIdPTR", pv->pv_map = %p\n",
thunk_printf_debug("pmap_enter %p : v %p, p %p, prot %d, flags %d\n",
thunk_printf_debug("pv_release ppn %"PRIdPTR", lpn %"PRIdPTR"\n", ppn, lpn);
thunk_printf_debug("syscall no. %d, ", code);
thunk_printf_debug("nargs %d, argsize %d => ", nargs, argsize);
thunk_printf_debug("SIGSEGV or SIGBUS!\n");
thunk_printf_debug("\tsi_signo = %d\n", info->si_signo);
thunk_printf_debug("\tsi_errno = %d\n", info->si_errno);
thunk_printf_debug("\tsi_code = %d\n", info->si_code);
thunk_printf_debug("\t\tSEGV_MAPERR\n");
thunk_printf_debug("\t\tSEGV_ACCERR\n");
thunk_printf_debug("\t\tBUS_ADRALN\n");
thunk_printf_debug("\t\tBUS_ADRERR\n");
thunk_printf_debug("\t\tBUS_OBJERR\n");
thunk_printf_debug("\tsi_addr = %p\n", info->si_addr);
thunk_printf_debug("\tsi_trap = %d\n", info->si_trap);
thunk_printf_debug("pmap fault couldn't handle it! : "
thunk_printf_debug("%s: uvm fault %d, pc %p, va %p, from_kernel %d\n",
thunk_printf_debug("giving signal to userland\n");