Minor fixes and improvements for sys_call().

This commit is contained in:
Jorrit Herder
2005-07-26 13:51:21 +00:00
parent fd4b7f7a1d
commit a41eb700e8
7 changed files with 36 additions and 35 deletions
+2 -2
View File
@@ -135,7 +135,7 @@ message *m_ptr; /* pointer to message in the caller's space */
* anywhere in data or stack or gap. It will have to be made more elaborate
* for machines which don't have the gap mapped.
*/
if (function & SENDREC) {
if (function & CHECK_PTR) {
vb = (vir_bytes) m_ptr; /* virtual clicks */
vlo = vb >> CLICK_SHIFT; /* bottom of message */
vhi = (vb + MESS_SIZE - 1) >> CLICK_SHIFT; /* top of message */
@@ -148,7 +148,7 @@ message *m_ptr; /* pointer to message in the caller's space */
* verify that the caller is allowed to send to the given destination and
* that the destination is still alive.
*/
if (function & SEND) {
if (function & CHECK_DST) {
if (! get_sys_bit(priv(caller_ptr)->s_send_mask, nr_to_id(src_dst))) {
kprintf("Warning, send_mask denied %d sending to %d\n",
proc_nr(caller_ptr), src_dst);