| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2012-07-29 | Do not call setroot() from MD code and from MI code, which has | mlelstv | |
| unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732. No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information as a side effect. Instead call MI rootconf() from MD code which makes rootconf() now a wrapper to setroot(). Adjust several MD routines to set the global booted_device,booted_partition variables instead of passing partial information to setroot(). Make cpu_rootconf(9) describe the calling order. | |||
| 2012-06-25 | Implement dummy `cpu_mcontext_validate' to make it compile again. This | reinoud | |
| function needs to be implemented in the target secton one day for extra security. | |||
| 2012-03-03 | Implement signal forwarding to userland for usermode kernels. Especially | reinoud | |
| SIGFPE is important since the urkel shouldn't stop when a userland program devides by zero! | |||
| 2012-01-21 | Complete rewrite of the signal and spl framework for NetBSD/usermode | reinoud | |
| Signals are now moved from the sigaltstack ASAP and stacked on a replacement stack for each processes. Preemption now works though could be enhanced a bit more | |||
| 2012-01-18 | Create an atomic switchto() that has SIGALRM and SIGIO signals blocked that | reinoud | |
| might otherwise disrupt the setting of curlwp to match the lwp context. | |||
| 2012-01-15 | sync disks and unmount at shutdown, and run shutdownhooks + pmf shutdown | jmcneill | |
| handlers | |||
| 2012-01-15 | allow specifing the root device with 'root=ldN' parameter | jmcneill | |
| 2012-01-14 | Reimplement userret() to also include AST for preemption. | reinoud | |
| Note it would be nice if we could do the check "are we going to userland?" in a less intrusive way. | |||
| 2012-01-14 | Revamp the NetBSD/usermode pagefault and illegal instruction handing. It now | reinoud | |
| can handle recursive entry and is a lot more memory tight compared to the old implementation. Performance wise: * slightly less number of syscalls/sec possible though could be optimized * a lot faster context creation / destruction making overall operation faster. | |||
| 2012-01-12 | Remove old comment about space not being freed; it is now done correctly so | reinoud | |
| remove it to avoid confusion later. | |||
| 2012-01-06 | Cleanup stack allocation and freeing. This means the memory leak on lwp | reinoud | |
| destruction ought to be solved. | |||
| 2012-01-04 | No reason why to have a larger pagefault stackframe for lwp0 | reinoud | |
| 2012-01-04 | Zero the memory we claim for the stacks | reinoud | |
| 2012-01-03 | Use M_WAITOK instead of M_NOWAIT for the stack allocations | reinoud | |
| 2012-01-03 | Rename the debug printf's to use a thunk_ prefix to avoid confusion. | reinoud | |
| 2011-12-27 | Implement physio() for NetBSD/usermode the right way! | reinoud | |
| 2011-12-24 | Implement cpu_getmcontext() and cpu_setmcontext() | reinoud | |
| 2011-12-15 | Improve usermode timecounter. It's unreasonable to assume that we'll get | jmcneill | |
| 100 "SIGALRM" per second with an ITIMER_REAL at 100Hz on a HZ=100 host as the timer may expire before a pending signal has been delivered. Instead of setitimer, use timer_create + timer_settime and from our intr handler use timer_getoverrun to determine how many ticks we have missed. | |||
| 2011-12-15 | allocate msgbuf with kmem_zalloc instead of thunk_malloc, now dmesg works | jmcneill | |
| 2011-12-15 | implement cpu idle via sigsuspend | jmcneill | |
| 2011-12-14 | only need to setup altstack after fork, not in lwp tramp | jmcneill | |
| 2011-12-14 | need to sigaltstack for each lwp | jmcneill | |
| 2011-12-13 | Just in case ease up the stack space a bit more | reinoud | |
| 2011-12-12 | No need for such big stack spaces on lwp_fork() with the new setup. | reinoud | |
| 2011-12-11 | Free the systemcall and pagefault stacks on lwp destroy. | reinoud | |
| XXX what about the main ucps stackspace that is used for the trampoline? | |||
| 2011-11-27 | Big patch that changes the signal stack usage of urkel significantly. | reinoud | |
| Formerly, all signals came on the signal stack and the two important ones were then forwared to either the system call or the pagefault handler. This worked fine but the signal stack remains that, a stack. When we go multi-process this stack gets corrupted and out-of-order with all kind of nastyness since a userland process switch can occure when a system call is called or when a process gets a page fault. The new scheme only uses the signal stack as a jumpboard. It swaps states and then returns from the signal, clearing the stack but instead of returning to the code it now jumpt to the handler and that handler then returns to the code when its finished. | |||
| 2011-09-14 | Make stacksize of newly spawn lwp's bigger than one page. Actually use the | reinoud | |
| variable stack_size now | |||
| 2011-09-10 | Make cpu_lwp_trampo only jump once and make successive jumps go to the func | reinoud | |
| only | |||
| 2011-09-09 | Make the trampoline only jump once! | reinoud | |
| All next calls are directed directly to the func specified. | |||
| 2011-09-09 | Use the new thunk_makecontext() scheme with function and upto 3 aguments | reinoud | |
| 2011-09-09 | Streamline makecontext() calls to really only specify the number of arguments | reinoud | |
| to prevent side-effects | |||
| 2011-09-09 | Clean up cpu_trampoline and link the context so we dont have to manually do | reinoud | |
| that. | |||
| 2011-09-08 | Use the machdep.h and now use the md_check_syscall_opcode() | reinoud | |
| 2011-09-08 | Link syscall to userland so on exit is automatically goes to userland. | reinoud | |
| 2011-09-08 | Cleanup syscall context creation | reinoud | |
| 2011-09-08 | get rid of clock softintr and move setitimer call to cpu_initclocks | jmcneill | |
| 2011-09-08 | White space | reinoud | |
| 2011-09-08 | Create a ucontext for the system call to work in; its cloned from the new | reinoud | |
| pcb's call `userland' ucontext. | |||
| 2011-09-06 | cpu_lwp_inkernel approach won't work, back to the drawing board | jmcneill | |
| 2011-09-05 | Have the urkel maintain a 'cpu_lwp_inkernel' variable and read it from the | jmcneill | |
| urkelvisor to determine the origin of a syscall. | |||
| 2011-09-05 | Restore errno just before switching to the new context and NOT after it got | reinoud | |
| back again | |||
| 2011-09-05 | Move kpreempt_enable/disable to splsched() | reinoud | |
| 2011-09-05 | Disable kernel preemption in the critical section of cpu_switchto() | reinoud | |
| 2011-09-04 | pcb->errno to pcb->pcb_errno | reinoud | |
| 2011-09-04 | Try to preserve errno over traps and on context switches | reinoud | |
| 2011-09-03 | unbreak build on netbsd | jmcneill | |
| 2011-09-03 | Get this compiling (but not quite linking yet) on Linux | jmcneill | |
| 2011-09-03 | Oops forgot to commit this one | reinoud | |
| 2011-09-02 | Update trapframe and add system call switchframe | reinoud | |
| 2011-08-29 | Dirty commit of machdep.c and cpu.c | reinoud | |
