PM cleanup: remove obsolete HAS_DMA flag
This commit is contained in:
parent
67d986f882
commit
693a6652ca
3 changed files with 1 additions and 7 deletions
|
@ -21,7 +21,6 @@ PUBLIC int do_adddma()
|
||||||
endpoint_t req_proc_e, target_proc_e;
|
endpoint_t req_proc_e, target_proc_e;
|
||||||
int proc_n, r;
|
int proc_n, r;
|
||||||
phys_bytes base, size;
|
phys_bytes base, size;
|
||||||
struct mproc *rmp;
|
|
||||||
|
|
||||||
if (mp->mp_effuid != SUPER_USER)
|
if (mp->mp_effuid != SUPER_USER)
|
||||||
return EPERM;
|
return EPERM;
|
||||||
|
@ -42,8 +41,6 @@ PUBLIC int do_adddma()
|
||||||
printf("pm:do_adddma: endpoint %d not found\n", target_proc_e);
|
printf("pm:do_adddma: endpoint %d not found\n", target_proc_e);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
rmp= &mproc[proc_n];
|
|
||||||
rmp->mp_flags |= HAS_DMA;
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -427,7 +427,7 @@ struct mproc *rmp;
|
||||||
if (rmp->mp_flags & ZOMBIE)
|
if (rmp->mp_flags & ZOMBIE)
|
||||||
panic(__FILE__, "zombify: process was already a zombie", NO_NUM);
|
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;
|
rmp->mp_flags |= ZOMBIE;
|
||||||
|
|
||||||
p_mp = &mproc[rmp->mp_parent];
|
p_mp = &mproc[rmp->mp_parent];
|
||||||
|
|
|
@ -76,9 +76,6 @@ EXTERN struct mproc {
|
||||||
#define PM_SIG_PENDING 0x4000 /* process got a signal while waiting for FS */
|
#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 PARTIAL_EXEC 0x8000 /* Process got a new map but no content */
|
||||||
#define TOLD_PARENT 0x10000 /* Parent wait() completed, ZOMBIE off */
|
#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)
|
#define NIL_MPROC ((struct mproc *) 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue