Skip to main content

handle_csr_read

Function handle_csr_read 

Source
pub fn handle_csr_read(csrno: u32, plat: &mut dyn Platform) -> i32
Expand description

Handle a read from an unrecognized CSR number.

Currently only ReadKbd (0x140) is handled here. It returns the next byte from stdin, or -1 cast to i32 if none is available.