NOVA: Use everywhere same value for a invalid cap

This commit is contained in:
Alexander Boettcher
2012-08-02 10:10:48 +02:00
committed by Norman Feske
parent e44648e1ab
commit e3a7d2220d
4 changed files with 23 additions and 8 deletions

View File

@ -183,7 +183,7 @@ namespace Genode {
if (_rcv_pt_sel_cnt < _rcv_pt_sel_max)
return _rcv_pt_sel[_rcv_pt_sel_cnt++].sel;
else
return 0;
return ~0UL;
}
/**
@ -294,7 +294,8 @@ namespace Genode {
if (!item) break;
if (_rcv_pt_sel_max >= MAX_CAP_ARGS) break;
_rcv_pt_sel[_rcv_pt_sel_max].sel = item->crd >> 12;
Nova::Crd cap = Nova::Crd(item->crd);
_rcv_pt_sel[_rcv_pt_sel_max].sel = cap.is_null() ? ~0UL : cap.base();
_rcv_pt_sel[_rcv_pt_sel_max++].del = item->is_del();
}
}