Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1856 |
6641 d 13 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 |
6642 d 9 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
|
1854 |
6642 d 14 h |
jermar |
/trunk/kernel/ |
Define architecture-specific thread sub-constructors and sub-destructors on all architectures.
Define the THREAD_FLAG_USPACE which means that the thread runs in user space.
The forementioned changes allow for allocating of user window buffer on sparc64
threads that execute in userspace.
A lot of formatting and indentation fixes. |
|
/trunk/kernel/arch/sparc64/src/proc/thread.c
/trunk/kernel/arch/amd64/include/proc/task.h /trunk/kernel/arch/amd64/include/proc/thread.h /trunk/kernel/arch/amd64/src/proc/thread.c /trunk/kernel/arch/ia32/include/proc/task.h /trunk/kernel/arch/ia32/include/proc/thread.h /trunk/kernel/arch/ia32/src/proc/scheduler.c /trunk/kernel/arch/ia32/src/proc/task.c /trunk/kernel/arch/ia32/src/proc/thread.c /trunk/kernel/arch/ia64/include/proc/thread.h /trunk/kernel/arch/mips32/include/proc/thread.h /trunk/kernel/arch/ppc32/include/proc/thread.h /trunk/kernel/arch/ppc64/include/proc/thread.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/barrier.h /trunk/kernel/arch/sparc64/include/proc/thread.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/generic/include/mm/frame.h /trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/main/kinit.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/thread.c
|
1853 |
6645 d 6 h |
jermar |
/trunk/kernel/arch/sparc64/include/ |
Remove PSTATE from istate. |
|
/trunk/kernel/arch/sparc64/include/interrupt.h
|
1852 |
6645 d 6 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 |
6650 d 11 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
|
1850 |
6653 d 14 h |
jermar |
/trunk/kernel/arch/ia64/src/mm/ |
Indentation and formatting changes. |
|
/trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/ia64/src/mm/vhpt.c
|
1849 |
6654 d 13 h |
jermar |
/trunk/kernel/ |
sparc64 work.
interrupt_vector trap experimental handling.
Minimal reverse-engineered FireHose Controller driver (documentation needed!).
Keyboard on Sun Enterprise is now interrupt driven. Keyboard on Sun Ultra
is still polled. |
|
/trunk/kernel/arch/sparc64/include/drivers/fhc.h /trunk/kernel/arch/sparc64/src/drivers/fhc.c
/trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/drivers/ns16550.h /trunk/kernel/arch/sparc64/include/drivers/z8530.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/drivers/tick.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/doc/arch/sparc64 /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd/z8530.c
|
1848 |
6660 d 15 h |
jermar |
/trunk/kernel/ |
Rework the z8530 driver so that it is based on z8530 specification rather
than on accidental and limited "compatibility" with i8042. |
|
/trunk/kernel/arch/sparc64/include/drivers/z8530.h /trunk/kernel/genarch/src/kbd/z8530.c
|
1847 |
6661 d 2 h |
decky |
/trunk/tools/ |
fix targets |
|
/trunk/tools/build
|
1846 |
6661 d 2 h |
decky |
/trunk/ |
allow automatic build |
|
/trunk/Makefile /trunk/tools/config.py
|
1845 |
6661 d 2 h |
decky |
/trunk/tools/ |
simple development environment build script |
|
/trunk/tools/build
|
1844 |
6662 d 6 h |
jermar |
/trunk/kernel/ |
Add an option to compile the sparc64 kernel for Ultra 5 or Enterprise E6500.
Basic keyboard support (polling) based on ns16550 serial port (deployed on Ultra). |
|
/trunk/kernel/arch/sparc64/include/drivers/ns16550.h /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/src/kbd/ns16550.c
/trunk/kernel/arch/amd64/Makefile.inc /trunk/kernel/arch/ia32/Makefile.inc /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/src/kbd/key.c /trunk/kernel/kernel.config
|
1843 |
6662 d 9 h |
jermar |
/trunk/kernel/genarch/ |
Move code duplicated in i8042.c and z8530.c to key.c. |
|
/trunk/kernel/genarch/include/kbd/key.h /trunk/kernel/genarch/src/kbd/key.c
/trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/z8530.c
|
1842 |
6662 d 11 h |
jermar |
/trunk/kernel/ |
i8042 and z8530 separated, the tree compiles again.
Now there is some duplicated code in i8042.c and z8530.c,
but that can be eliminated in slower pace. |
|
/trunk/kernel/arch/sparc64/include/drivers/kbd.h /trunk/kernel/genarch/include/kbd/scanc.h /trunk/kernel/genarch/src/kbd/z8530.c
/trunk/kernel/arch/amd64/Makefile.inc /trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/Makefile.inc /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/drivers/z8530.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/scanc_pc.c /trunk/kernel/genarch/src/kbd/scanc_sun.c
|
1841 |
6662 d 12 h |
jermar |
/trunk/kernel/ |
Start reorganization of different keyboard drivers.
What seemed like a screwed i8042 chip appears to be
Zilog 8530.
The repository won't compile now. To be fixed in next commits. |
|
/trunk/kernel/arch/sparc64/include/drivers/z8530.h /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/genarch/include/kbd /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/kbd
/trunk/kernel/arch/sparc64/include/drivers/i8042.h /trunk/kernel/arch/sparc64/src/drivers/i8042.c /trunk/kernel/genarch/include/i8042 /trunk/kernel/genarch/src/i8042
/trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/include/kbd/scanc_pc.h /trunk/kernel/genarch/include/kbd/scanc_sun.h /trunk/kernel/genarch/src/kbd/scanc_sun.c
|
1840 |
6663 d 1 h |
decky |
/trunk/kernel/arch/xen32/ |
claim copyright on files with significant xen32-related changes
(for the purpose of author's master thesis) |
|
/trunk/kernel/arch/xen32/include/asm.h /trunk/kernel/arch/xen32/include/mm/frame.h /trunk/kernel/arch/xen32/include/mm/memory_init.h /trunk/kernel/arch/xen32/include/mm/page.h /trunk/kernel/arch/xen32/include/pm.h /trunk/kernel/arch/xen32/src/boot/boot.S /trunk/kernel/arch/xen32/src/mm/frame.c /trunk/kernel/arch/xen32/src/mm/memory_init.c /trunk/kernel/arch/xen32/src/mm/page.c /trunk/kernel/arch/xen32/src/mm/tlb.c /trunk/kernel/arch/xen32/src/pm.c /trunk/kernel/arch/xen32/src/xen32.c
|
1839 |
6666 d 9 h |
decky |
/trunk/kernel/generic/ |
finish security context isolation |
|
/trunk/kernel/generic/include/arch.h /trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/ddi/ddi.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/the.c /trunk/kernel/generic/src/proc/thread.c /trunk/kernel/generic/src/security/cap.c
|
1838 |
6667 d 9 h |
jermar |
/trunk/kernel/ |
Add scan code map for Sun keyboard. |
|
/trunk/kernel/genarch/include/i8042/scanc_pc.h /trunk/kernel/genarch/include/i8042/scanc_sun.h /trunk/kernel/genarch/src/i8042/scanc_pc.c /trunk/kernel/genarch/src/i8042/scanc_sun.c
/trunk/kernel/arch/amd64/Makefile.inc /trunk/kernel/arch/ia32/Makefile.inc /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/include/i8042/i8042.h /trunk/kernel/genarch/src/i8042/i8042.c
|
1837 |
6667 d 16 h |
jermar |
/trunk/ |
Support 24bpp framebuffers with 4 pixelbytes (each pixel aligned on 32-bits).
At least on sparc64, the OpenFirmware linebytes property specifies the number
of pixels between consecutive scan lines of the display. Fix scanilne calculation,
including possible alignment.
Add note to 8bpp pixel functions pointing out drawbacks of that mode. |
|
/trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/boot/arch/sparc64/loader/ofwarch.h /trunk/kernel/arch/ia32/src/drivers/vesa.c /trunk/kernel/arch/mips32/src/mips32.c /trunk/kernel/arch/ppc32/src/ppc32.c /trunk/kernel/arch/ppc64/src/ppc64.c /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/genarch/include/fb/fb.h /trunk/kernel/genarch/src/fb/fb.c
|