From: David van Moolenbroek Date: Wed, 8 Jul 2009 20:08:46 +0000 (+0000) Subject: PM cleanup: remove obsolete HAS_DMA flag X-Git-Tag: v3.1.5~226 X-Git-Url: http://zhaoyanbai.com/repos/doc/%20%22?a=commitdiff_plain;h=693a6652ca6e1a71af4e9d913f11db25645daca9;p=minix.git PM cleanup: remove obsolete HAS_DMA flag --- diff --git a/servers/pm/dma.c b/servers/pm/dma.c index 179f9de3b..11afac7ef 100644 --- a/servers/pm/dma.c +++ b/servers/pm/dma.c @@ -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; } diff --git a/servers/pm/forkexit.c b/servers/pm/forkexit.c index e93793e6e..08bbc3193 100644 --- a/servers/pm/forkexit.c +++ b/servers/pm/forkexit.c @@ -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]; diff --git a/servers/pm/mproc.h b/servers/pm/mproc.h index d6110bf6c..a0e961345 100644 --- a/servers/pm/mproc.h +++ b/servers/pm/mproc.h @@ -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)