X-Git-Url: http://git.barrelfish.org/?p=barrelfish;a=blobdiff_plain;f=usr%2Finit%2Fspawn.c;h=6d1a1104c370e123abc92620282a302b9413da8e;hp=6aaae1168d568dd2e244e3eaf4e21380af15c257;hb=d13c7d2fe6f5e3f82a035effcc10785c7fb03520;hpb=2fd5b62dbb5a249c3d461ad27e9ae2596f1fd521 diff --git a/usr/init/spawn.c b/usr/init/spawn.c index 6aaae11..6d1a110 100644 --- a/usr/init/spawn.c +++ b/usr/init/spawn.c @@ -24,26 +24,17 @@ errval_t initialize_mem_serv(struct spawninfo *si) /* copy supercn to memory server */; struct capref init_supercn_cap = { .cnode = cnode_root, - .slot = ROOTCN_SLOT_SUPERCN0 + .slot = ROOTCN_SLOT_SUPERCN }; struct capref child_supercn_cap = { .cnode = si->rootcn, - .slot = ROOTCN_SLOT_SUPERCN0 + .slot = ROOTCN_SLOT_SUPERCN }; err = cap_copy(child_supercn_cap, init_supercn_cap); if (err_is_fail(err)) { return err_push(err, INIT_ERR_COPY_SUPERCN_CAP); } - /* copy supercn to memory server */; - init_supercn_cap.slot = ROOTCN_SLOT_SUPERCN1; - child_supercn_cap.slot = ROOTCN_SLOT_SUPERCN1; - - err = cap_copy(child_supercn_cap, init_supercn_cap); - if (err_is_fail(err)) { - return err_push(err, INIT_ERR_COPY_SUPERCN_CAP); - } - return SYS_ERR_OK; }