Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1864 |
6565 d 7 h |
jermar |
/trunk/ |
sparc64 update.
- Prototype userspace layer implementation that
at least relates to sparc64 and compiles cleanly.
- Fixes for kernel's preemptible_handler and code
related to running userspace.
- Enable userspace. Several dozen instructions
are now run in userspace! We are pretty near
the userspace milestone for sparc64. |
|
/trunk/uspace/libc/arch/sparc64/include/stack.h
/trunk/boot/arch/sparc64/loader/Makefile /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/mm/as.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/context.S /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/src/proc/task.c /trunk/uspace/libc/arch/sparc64/_link.ld.in /trunk/uspace/libc/arch/sparc64/include/atomic.h /trunk/uspace/libc/arch/sparc64/include/config.h /trunk/uspace/libc/arch/sparc64/include/context_offset.h /trunk/uspace/libc/arch/sparc64/include/endian.h /trunk/uspace/libc/arch/sparc64/include/limits.h /trunk/uspace/libc/arch/sparc64/include/psthread.h /trunk/uspace/libc/arch/sparc64/include/stackarg.h /trunk/uspace/libc/arch/sparc64/include/syscall.h /trunk/uspace/libc/arch/sparc64/include/thread.h /trunk/uspace/libc/arch/sparc64/include/types.h /trunk/uspace/libc/arch/sparc64/src/entry.s /trunk/uspace/libc/arch/sparc64/src/psthread.S /trunk/uspace/libc/arch/sparc64/src/thread.c /trunk/uspace/libc/arch/sparc64/src/thread_entry.s
|
1863 |
6567 d 9 h |
jermar |
/trunk/ |
Allow architectures to decide between inlined and not inlined version of syscall wrapper.
Implement inlined syscall wrapper for sparc64. |
|
/trunk/uspace/libc/arch/amd64/include/syscall.h /trunk/uspace/libc/arch/ia32/include/syscall.h /trunk/uspace/libc/arch/ia64/include/syscall.h /trunk/uspace/libc/arch/mips32/include/syscall.h /trunk/uspace/libc/arch/mips32eb/include/syscall.h /trunk/uspace/libc/arch/ppc32/include/syscall.h /trunk/uspace/libc/arch/ppc64/include/syscall.h /trunk/uspace/libc/arch/sparc64/include/syscall.h /trunk/uspace/libc/include/syscall.h
/trunk/uspace/libc/arch/sparc64/src/syscall.c
/trunk/kernel/arch/sparc64/include/trap/syscall.h /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/syscall/syscall.h /trunk/uspace/libc/arch/sparc64/Makefile.inc /trunk/uspace/libc/generic/ddi.c /trunk/uspace/libc/include/libc.h /trunk/uspace/libc/include/sys/types.h
|
1862 |
6567 d 13 h |
jermar |
/trunk/kernel/ |
sparc64 work.
Kernel syscall support.
Modify the preemptive_handler for the use by syscalls. |
|
/trunk/kernel/arch/sparc64/include/syscall.h /trunk/kernel/arch/sparc64/include/trap/syscall.h /trunk/kernel/arch/sparc64/src/trap/syscall.c
/trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/src/syscall/syscall.c
|
1861 |
6567 d 17 h |
jermar |
/trunk/kernel/arch/sparc64/ |
Convert sparc64 traps using SIMPLE_HANDLER to using PREEMPTIBLE_HANDLER. |
|
/trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S
|
1860 |
6568 d 11 h |
jermar |
/trunk/kernel/ |
A lot of untested sparc64 stuff:
- Write ASID to hardware when a thread is about to run in userspace.
- Add userspace() and switch_to_userspace() functions.
- Handle special cases when the userspace spill/fill handler causes MMU trap.
- Resolve some TODOs in the existing sparc64 code.
- sparc64 has now C99 compliant header guards.
- Formatting and indentation fixes. |
|
/trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/arg.h /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/barrier.h /trunk/kernel/arch/sparc64/include/byteorder.h /trunk/kernel/arch/sparc64/include/console.h /trunk/kernel/arch/sparc64/include/context.h /trunk/kernel/arch/sparc64/include/cpu.h /trunk/kernel/arch/sparc64/include/debug.h /trunk/kernel/arch/sparc64/include/drivers/tick.h /trunk/kernel/arch/sparc64/include/elf.h /trunk/kernel/arch/sparc64/include/faddr.h /trunk/kernel/arch/sparc64/include/fpu_context.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/memstr.h /trunk/kernel/arch/sparc64/include/mm/as.h /trunk/kernel/arch/sparc64/include/mm/frame.h /trunk/kernel/arch/sparc64/include/mm/memory_init.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/mm/tte.h /trunk/kernel/arch/sparc64/include/proc/task.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/arch/sparc64/include/trap/trap.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/include/types.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/ddi/ddi.c /trunk/kernel/arch/sparc64/src/dummy.s /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/align.h
|
1858 |
6568 d 19 h |
jermar |
/trunk/kernel/arch/sparc64/src/trap/ |
sparc64 work.
Handle situation when there are more valid windows than NWINDOW - 2 during
the return to userspace in preemtpible_handler(). |
|
/trunk/kernel/arch/sparc64/src/trap/trap_table.S
|
1857 |
6569 d 14 h |
jermar |
/trunk/kernel/arch/sparc64/ |
sparc64 work.
More bits needed to reach the userspace milestone were added.
The preemptible_handler(), still a prototype, now contains all functionality it needs.
Some sanitation was added to functions expecting page-aligned pointers to
userspace window buffer. |
|
/trunk/kernel/arch/sparc64/include/mm/frame.h /trunk/kernel/arch/sparc64/include/mm/page.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/proc/thread.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S
|
1856 |
6569 d 19 h |
jermar |
/trunk/kernel/ |
sparc64 work.
- Modify before_thread_runs_arch() to store addresses of the kernel stack and
userspace window buffer, resp., to registers %g6 and %g7, resp, in the
alternate and interrupt global sets.
- Modify after_thread_ran_arch() to sample %g7 from the alternate globals.
- Implement trap handler for spilling register windows into userspace window buffer.
- Implement assembly language functions to access %g6 and %g7 registers in the alternate sets.
- Initialize the trap table so that there are now also spill_1_normal, spill_2_normal,
spill_0_other and fill_1_normal handlers. These handlers are used in different situations
and for different purposes. |
|
/trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/context.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/config.h
|
1855 |
6570 d 15 h |
jermar |
/trunk/kernel/ |
sparc64 work.
Fix bug introduced in revision 1852. When fixing CWP,
the input registers of the current window (i.e. output
registers of the window belonging to the interrupted
context) must be preserved. Preserve those registers
in memory. Sure there exist more efficient ways how to
copy the inputs.
Simplify before_thread_runs_arch(), resp. after_thread_ran_arch(),
and make them install, resp. uninstall, DTLB locked mapping for
eventual userspace window buffer. |
|
/trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/macros.h /trunk/kernel/generic/src/main/kinit.c
|
1852 |
6573 d 12 h |
jermar |
/trunk/kernel/ |
sparc64 work.
Bunch of changes in preparation for sparc64 mm and userspace support.
Fix alignment of hardcoded_* variables in linker script. |
|
/trunk/kernel/arch/sparc64/_link.ld.in /trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/test/synch/rwlock4/test.c /trunk/kernel/test/thread/thread1/test.c
|
1851 |
6578 d 17 h |
jermar |
/trunk/kernel/ |
sparc64 work.
Define the istate structure.
Move the identity-mapping handler to assembly.
Make the preemptible handler more general so that TL=1 MMU exceptions can make use of it.
Little bit of formatting and indentation. |
|
/trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/sparc64/include/context.h /trunk/kernel/arch/sparc64/include/context_offset.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/genarch/include/mm/as_ht.h /trunk/kernel/genarch/include/mm/as_pt.h /trunk/kernel/genarch/include/mm/page_ht.h /trunk/kernel/genarch/include/mm/page_pt.h /trunk/kernel/genarch/src/mm/as_ht.c /trunk/kernel/genarch/src/mm/as_pt.c /trunk/kernel/genarch/src/mm/asid.c /trunk/kernel/genarch/src/mm/asid_fifo.c /trunk/kernel/genarch/src/mm/page_ht.c /trunk/kernel/genarch/src/mm/page_pt.c /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/src/mm/as.c
|
1787 |
6619 d 12 h |
decky |
/ |
move kernel/trunk, uspace/trunk and boot/trunk to trunk/kernel, trunk/uspace and trunk/boot |
|
/trunk /trunk/boot /trunk/kernel /trunk/uspace
/boot/trunk /kernel/trunk /uspace/trunk
|
897 |
6753 d 6 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Fix KBD_VIRT_ADDRESS.
Call before_thread_runs() prior to the switch to the thread's stack. Add comment why this is crucial.
Add after_thread_ran() to the scheduler.
Add before_thread_runs_arch() and after_thread_ran_arch() for sparc64, mapping/demapping thread's kernel stack.
Add dummy after_thread_ran_arch() to all other architectures.
Add dtlb_insert_mapping() to promote code reuse. |
|
/kernel/trunk/arch/sparc64/src/proc /kernel/trunk/arch/sparc64/src/proc/scheduler.c
/kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/arch/ia32/src/proc/scheduler.c /kernel/trunk/arch/ia64/src/dummy.s /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/ppc32/src/dummy.s /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/include/trap/exception.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap/exception.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S /kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/src/proc/scheduler.c
|
883 |
6754 d 18 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Switch console to framebuffer (needs proper detection and initialization).
No native keyboard support, so far.
Memory management trap handler fixes.
Do not use OpenFirmware trap table anymore. |
|
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/barrier.h /kernel/trunk/arch/sparc64/include/console.h /kernel/trunk/arch/sparc64/include/trap/exception.h /kernel/trunk/arch/sparc64/include/trap/mmu.h /kernel/trunk/arch/sparc64/include/trap/trap.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap/exception.c /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
863 |
6759 d 7 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Add initial TLB miss handlers. |
|
/kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
667 |
6813 d 11 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Rename saving_handler() to preemptible_handler()
and fix it to make sparc64 kernel preemptive.
Add two handlers for two fatal exceptions (i.e.
instruction_access_exception and mem_address_not_aligned.
Fix panic_printf() to not allocate its own register window. |
|
/kernel/trunk/arch/sparc64/include/trap/exception.h /kernel/trunk/arch/sparc64/src/trap/exception.c
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/trap/interrupt.h /kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/panic.S /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
666 |
6815 d 9 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Fix clean_window trap handler so that it clears output registers instead of input registers!
Fix interrupt handlers to save global registers. |
|
/kernel/trunk/arch/sparc64/include/context.h /kernel/trunk/arch/sparc64/include/context_offset.h /kernel/trunk/arch/sparc64/include/trap/interrupt.h /kernel/trunk/arch/sparc64/include/trap/regwin.h /kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/context.S /kernel/trunk/arch/sparc64/src/panic.S /kernel/trunk/arch/sparc64/src/trap/trap_table.S /kernel/trunk/tools/sparc64/gencontext.c
|
664 |
6817 d 5 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Interrupt Levels 1 - 15 serviced.
Minor changes in the exc_* functions. |
|
/kernel/trunk/arch/sparc64/include/drivers /kernel/trunk/arch/sparc64/include/drivers/tick.h /kernel/trunk/arch/sparc64/include/trap/interrupt.h /kernel/trunk/arch/sparc64/src/drivers /kernel/trunk/arch/sparc64/src/drivers/tick.c /kernel/trunk/arch/sparc64/src/trap/interrupt.c
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/arch/sparc64/include/register.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S /kernel/trunk/generic/include/interrupt.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/interrupt/interrupt.c
|
663 |
6817 d 18 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Initial interrupt_vector_trap handler and fixes needed to make it do the right thing (i.e. panic()). |
|
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/arch/sparc64/src/panic.S /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
634 |
6826 d 20 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Better way of trap table organization.
Kernel trap handlers now "stay" on addresses on wich they were linked. |
|
/kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
630 |
6827 d 10 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Register window clean, spill and fill handlers. |
|
/kernel/trunk/arch/sparc64/include/trap /kernel/trunk/arch/sparc64/include/trap/regwin.h /kernel/trunk/arch/sparc64/include/trap/trap.h /kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/trap /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
/kernel/trunk/arch/sparc64/include/trap.h /kernel/trunk/arch/sparc64/include/trap_table.h /kernel/trunk/arch/sparc64/src/trap.c /kernel/trunk/arch/sparc64/src/trap_table.S
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c
|
534 |
6838 d 11 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel again. |
|
/kernel
/SPARTAN
|
532 |
6838 d 11 h |
jermar |
/ |
Revert renaming of HelenOS/SPARTAN to HelenOS/kernel because of important pending patch. |
|
/SPARTAN
/kernel
|
529 |
6840 d 14 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Add dummy trap tables. |
|
/kernel/trunk/arch/sparc64/include/trap_table.h /kernel/trunk/arch/sparc64/src/trap_table.S
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/src/context.S /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/start.S
|