Gaël Thomas
Mathieu Bacou
Devices use the memory bus for reads/writes
The DMA controller manages the transfer between peripherals or memory
→ The processor can execute instructions during an I/O
Processors use memory bus to access devices
Device memory is mapped in memory
Request / response protocol, special instructions
in
/out
stvec
0X14
signals a data block is
available0x14
:
0x2
0x2
SIE
(Supervisor Interrupts
Enable) in register SSTATUS
The interrupt handler (the function addressed by register
stvec
) is also called when system calls
and exceptions occur
ecall
, which triggers an interrupt of this
type0x5
stvec
points to the unique entrypoint
into the kernel:
Jiffies: global time source to update the date
Tick: core-local time source used for scheduling