mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
L4Linux: Block driver add IRQ guards
Use IRQ guards in C++ interface when calling Genode intefaces. Supplements issue #406
This commit is contained in:
parent
0114391e0a
commit
c06dc73738
@ -271,6 +271,8 @@ extern "C" {
|
||||
void* genode_block_request(unsigned idx, unsigned long sz,
|
||||
void *req, unsigned long *offset)
|
||||
{
|
||||
Linux::Irq_guard guard;
|
||||
|
||||
if (idx >= genode_block_count()) {
|
||||
PWRN("Invalid index!");
|
||||
return 0;
|
||||
@ -291,6 +293,8 @@ extern "C" {
|
||||
void genode_block_submit(unsigned idx, unsigned long queue_offset,
|
||||
unsigned long size, unsigned long disc_offset, int write)
|
||||
{
|
||||
Linux::Irq_guard guard;
|
||||
|
||||
if (idx >= genode_block_count()) {
|
||||
PWRN("Invalid index!");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user