Skip to content

kepler: Interrupt object should be capable of receiving ints from the other core #52

@notYuriy

Description

@notYuriy

Ideally, when handling interrupts from IOAPIC, we should set logical destination id to all 1s (so that any core can recieve the interrupt) and enable least busy mode. This would mean that any core can recieve the interrupt.

In this case, InterruptObject should support calling raise() on cores other than core owning thread was allocated to. For now its not the case.

/// NOTE: InterruptObject is strictly thread local
/// and assumes that raise() is called from the
/// thread owning queue.
/// NOTE: After unlink() was called, raise()
/// can no longer be called
pub const InterruptObject = struct {

The issue is in shutdown method that demands that interrupt won't arrive. This shouldn't be hard to fix with spinlock that will be locked both inside raise() and shutdown() methods

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions