Rev |
Age |
Author |
Path |
Log message |
Diff |
4315 |
5676 d 4 h |
jermar |
/trunk/ |
Replace non-canonical B instructions with BA %xcc.
Fix one occurrence of deprecated Bicc instruction. |
|
2610 |
6198 d 8 h |
jermar |
/trunk/ |
Support for six syscall arguments for sparc64.
There is a minor stability issue which needs to be fixed (kernel panics upon entering kconsole from the
console task). |
|
2071 |
6501 d 3 h |
jermar |
/trunk/ |
(c) versus (C) |
|
2068 |
6508 d 11 h |
jermar |
/trunk/kernel/ |
Formatting and indentation fixes. |
|
1915 |
6602 d 4 h |
jermar |
/trunk/kernel/ |
A quote from from SPARC V9 specification:
The Y register is deprecated; it is provided only for compatibility with previous versions
of the architecture. It should not be used in new SPARC-V9 software. It is
recommended that all instructions that reference the Y register (i.e., SMUL,
SMULcc, UMUL, UMULcc, MULScc, SDIV, SDIVcc, UDIV, UDIVcc, RDY, and
WRY) be avoided. See the appropriate pages in Appendix A, “Instruction Definitions,”
for suitable substitute instructions.
Still gcc is generating code which uses Y and some of the instructions above.
This change modifies the preemptible_handler() to preserve the Y register
across preemption. |
|
1888 |
6626 d 7 h |
jermar |
/trunk/ |
C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64. |
|
1861 |
6639 d 10 h |
jermar |
/trunk/kernel/arch/sparc64/ |
Convert sparc64 traps using SIMPLE_HANDLER to using PREEMPTIBLE_HANDLER. |
|
1860 |
6640 d 5 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. |
|
1855 |
6642 d 8 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. |
|
1852 |
6645 d 5 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. |
|
1851 |
6650 d 10 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. |
|
1787 |
6691 d 6 h |
decky |
/ |
move kernel/trunk, uspace/trunk and boot/trunk to trunk/kernel, trunk/uspace and trunk/boot |
|
1780 |
6698 d 7 h |
jermar |
/kernel/trunk/ |
Replace old __u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.). |
|
1703 |
6718 d 16 h |
jermar |
/kernel/trunk/arch/ |
Put sparc64 interrupt stuff under the Interrupt group in Doxygen-generated documentation. |
|
1702 |
6719 d 10 h |
cejka |
/kernel/trunk/ |
Kernel doxygen comments updated. |
|
667 |
6885 d 5 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. |
|
666 |
6887 d 2 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. |
|
634 |
6898 d 13 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. |
|
632 |
6899 d 2 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Add trap_install_handler().
Use trap_install_handler() to install register window clean, spill and fill handlers. |
|
630 |
6899 d 4 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Register window clean, spill and fill handlers. |
|