PM cleanup: remove obsolete HAS_DMA flag

This commit is contained in:
David van Moolenbroek 2009-07-08 20:08:46 +00:00
parent 67d986f882
commit 693a6652ca
3 changed files with 1 additions and 7 deletions

View file

@ -21,7 +21,6 @@ PUBLIC int do_adddma()
endpoint_t req_proc_e, target_proc_e;
int proc_n, r;
phys_bytes base, size;
struct mproc *rmp;
if (mp->mp_effuid != SUPER_USER)
return EPERM;
@ -42,8 +41,6 @@ PUBLIC int do_adddma()
printf("pm:do_adddma: endpoint %d not found\n", target_proc_e);
return EINVAL;
}
rmp= &mproc[proc_n];
rmp->mp_flags |= HAS_DMA;
return OK;
}

View file

@ -427,7 +427,7 @@ struct mproc *rmp;
if (rmp->mp_flags & ZOMBIE)
panic(__FILE__, "zombify: process was already a zombie", NO_NUM);
rmp->mp_flags &= (IN_USE|PRIV_PROC|HAS_DMA);
rmp->mp_flags &= (IN_USE|PRIV_PROC);
rmp->mp_flags |= ZOMBIE;
p_mp = &mproc[rmp->mp_parent];

View file

@ -76,9 +76,6 @@ EXTERN struct mproc {
#define PM_SIG_PENDING 0x4000 /* process got a signal while waiting for FS */
#define PARTIAL_EXEC 0x8000 /* Process got a new map but no content */
#define TOLD_PARENT 0x10000 /* Parent wait() completed, ZOMBIE off */
#define HAS_DMA 0x20000 /* Process directly or indirectly granted
* DMA buffers.
*/
#define NIL_MPROC ((struct mproc *) 0)