Subversion Repositories HelenOS

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
4254 5561 d 20 h jermar /trunk/kernel/generic/src/ Address issues with IRQ notifications.  
4148 5581 d 7 h decky /trunk/ as kernel little brother drivers are not needed anymore, the device numbers do not have to be correlated between kernel and uspace in any way
introduce new syscall sys_device_assign_devno() for generating system-wide unique device numbers for uspace
 
3973 5600 d 7 h decky /trunk/kernel/ kernel memory management revisited (phase 2): map physical memory according to zones
- ia32: register reserved and ACPI zones
- pareas are now used only for mapping of present physical memory (hw_area() is gone)
- firmware zones and physical addresses outside any zones are allowed to be mapped generally
- fix nasty antient bug in zones_insert_zone()
 
3968 5601 d 21 h jermar /trunk/kernel/generic/src/ddi/ Fix argument order.  
3964 5603 d 5 h decky /trunk/kernel/ switch between the preference of kernel/uspace IRQ hash table  
3950 5605 d 23 h jermar /trunk/kernel/generic/src/ddi/ Fix UP builds.  
3947 5606 d 1 h jermar /trunk/ This is the evil commit. In particular, it does:

- introduces more powerful pseudo code for userspace IRQ top-half handlers
- changes the internals of IRQ dispatching
- simplifies the kernel's i8042 driver
- adapts the uspace i8042 driver to make use of the new pseudocode
- breaks all other architectures except ia32
- breaks almost all existing drivers
- breaks switching between uspace and kernel drivers
 
3940 5607 d 1 h decky /trunk/kernel/ make hw_area API more generic
this allows mapping of EGA VRAM on ia32/amd64
 
3908 5610 d 23 h decky /trunk/ overhaul pareas: use one single physical area for the physical address space not belonging to physical memory  
3906 5611 d 19 h jermar /trunk/kernel/ IRQ handlers are using one superfluous argument and an unused elipsis.
On the other hand, IRQ claim functions would need to be passed the instance
argument.
 
3655 5689 d 22 h jermar /trunk/kernel/ Add additional members to the irq_t structure so that an interrupt-driven driver
does not need to know how to clear the level interrupt. The z8530 was modified
in this way and is much more generic. The ns16550 driver has also been modified,
but awaits testing. The sparc64 interrupt mapping and dispatch code is now using
the new info and calls the clear-interrupt-routine itself.
 
2218 6291 d 19 h decky /trunk/kernel/ support the possibility to send EOI or Interrupt Acknowledgement
prior to processing the interrupt
(this is essential on some architectures to prevent preemption deadlock)
 
2141 6302 d 18 h jermar /trunk/ The Ultimate Solution To Illegal Virtual Aliases.
It is better to avoid them completely than to fight them.
Switch the sparc64 port to 16K pages. The TLBs and TSBs
continue to operate with 8K pages only. Page tables and
other generic parts operate with 16K pages.

Because the MMU doesn't support 16K directly, each 16K
page is emulated by a pair of 8K pages. With 16K pages,
illegal aliases cannot be created in 16K D-cache.
 
2117 6353 d 4 h decky /trunk/kernel/generic/src/ddi/ explicit typecast  
2116 6353 d 4 h decky /trunk/kernel/generic/src/ddi/ explicit typecast  
2107 6354 d 21 h jermar /trunk/ When clock() is called by an external interrupt dispatched by the IRQ dispatcher,
no spinlock can be held or the kernel will not be preemptive. This fixes Ticket #24.

Formating and indentation fixes.
 
2089 6361 d 5 h decky /trunk/ huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes
 
2071 6371 d 22 h jermar /trunk/ (c) versus (C)  
2015 6410 d 22 h jermar /trunk/ Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.
 
2012 6413 d 20 h jermar /trunk/ Eliminate confusion between SYS_MAP_PHYSMEM and sys_physmem_map.
The syscall is to be called SYS_PHYSMEM_MAP from now on and the functions that participate in its implementation are
called *physmem_map().
 
1933 6463 d 21 h jermar /trunk/kernel/generic/ Implement efficient IPC notification cleanup.  
1926 6464 d 8 h decky /trunk/kernel/ cleanup for new IRQ subsystem  
1923 6464 d 21 h jermar /trunk/ Replace the old IRQ dispatcher and IPC notifier with new implementation.
Note that all architectures except for sparc64 are now broken
and don't even compile.
 
1922 6466 d 5 h jermar /trunk/kernel/ More IRQ stuff.
Modify the IRQ hash table functions to support lookup based on inr and devno.
Add method member to irq_t.
 
1921 6466 d 23 h jermar /trunk/kernel/ Changes in ns16550 and z8530 drivers.
Add some stuff for IRQ notifications to irq_t.
 
1920 6467 d 7 h jermar /trunk/kernel/ Move the new IRQ redirector to ddi/.
Add function for assigning unique device numbers.
Change sparc64/drivers/kbd.c to assign devno to keyboard.
 
1888 6497 d 1 h jermar /trunk/ C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64.
 
1839 6537 d 2 h decky /trunk/kernel/generic/ finish security context isolation  
1787 6562 d 0 h decky / move kernel/trunk, uspace/trunk and boot/trunk to trunk/kernel, trunk/uspace and trunk/boot  
1780 6569 d 1 h jermar /kernel/trunk/ Replace old __u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).  
1708 6587 d 7 h jermar /kernel/trunk/ Fix some broken doxygen comments.  
1705 6589 d 7 h cejka /kernel/trunk/ Added file with modules definitions and descriptions.
We are able to change modules order and their description in one place.
 
1702 6590 d 4 h cejka /kernel/trunk/ Kernel doxygen comments updated.  
1589 6597 d 23 h jermar /kernel/trunk/generic/src/ Improve comments regarding liveliness of threads and tasks.  
1588 6598 d 0 h jermar /kernel/trunk/generic/src/ In task_kill(), remove the task from the tasks_btree before proceeding.
Thus, when the kernel finds the task in the tasks_btree and locks it before
releasing tasks_lock, it is guaranteed that the task will not be destroyed
until the lock is held. If the kernel needs to unlock the task, do some operation
and lock it again, it should increase its refcount before doing so. In that case,
when releasing the lock, it must decrement the refcount and if it reaches
zero, it must call task_destroy().
 
1494 6601 d 18 h palkovsky /kernel/trunk/generic/ Removes unnecessary parameter for map_physmem syscall.  
1429 6606 d 8 h jermar /kernel/trunk/generic/ Make ddi_physmem_map() accept address space area flags instead of writable switch.
Thus even these types of address space areas can turn caching on, if it is desired.
 
1425 6606 d 22 h jermar /kernel/trunk/generic/ Make address space backend data a union.  
1424 6607 d 0 h jermar /kernel/trunk/ Move the sharing functionality to address space area backends.
Add backend for continuous regions of physical memory.
Sharing for these areas works automagically now.
 
1409 6610 d 19 h jermar /kernel/trunk/generic/ Some shared memory stuff (not completed).
Support for address space area backends.
Add ELF and anonymous memory backends.