]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/ppc/PseudoKernel.c
xnu-344.tar.gz
[apple/xnu.git] / osfmk / ppc / PseudoKernel.c
index 4498361879bd363f06452dc35fcf5bac9ec8acde..ce31867cfbd6717433b8c96cc916203fe4b41222 100644 (file)
@@ -59,7 +59,6 @@ kern_return_t syscall_notify_interrupt ( void ) {
   
     UInt32                     interruptState; 
     task_t                     task;
   
     UInt32                     interruptState; 
     task_t                     task;
-    spl_t                      s;
        thread_act_t    act, fact;
        thread_t                thread;
        bbRupt                  *bbr;
        thread_act_t    act, fact;
        thread_t                thread;
        bbRupt                  *bbr;
@@ -121,9 +120,7 @@ kern_return_t syscall_notify_interrupt ( void ) {
        bbr->rh.next = act->handlers;                                   /* Put our interrupt at the start of the list */
        act->handlers = &bbr->rh;
 
        bbr->rh.next = act->handlers;                                   /* Put our interrupt at the start of the list */
        act->handlers = &bbr->rh;
 
-       s = splsched();                                                                 /* No talking in class */
        act_set_apc(act);                                                               /* Set an APC AST */
        act_set_apc(act);                                                               /* Set an APC AST */
-       splx(s);                                                                                /* Ok, you can talk now */
 
        act_unlock_thread(act);                                                 /* Unlock the activation */
        return KERN_SUCCESS;                                                    /* We're done... */
 
        act_unlock_thread(act);                                                 /* Unlock the activation */
        return KERN_SUCCESS;                                                    /* We're done... */
@@ -151,7 +148,7 @@ void bbSetRupt(ReturnHandler *rh, thread_act_t act) {
 
        (void)hw_atomic_sub(&act->mact.emPendRupts, 1); /* Uncount this 'rupt */
 
 
        (void)hw_atomic_sub(&act->mact.emPendRupts, 1); /* Uncount this 'rupt */
 
-       if(!(sv = (savearea *)find_user_regs(act))) {   /* Find the user state registers */
+       if(!(sv = find_user_regs(act))) {                               /* Find the user state registers */
                kfree((vm_offset_t)bbr, sizeof(bbRupt));        /* Couldn't find 'em, release the control block */
                return;
        }
                kfree((vm_offset_t)bbr, sizeof(bbRupt));        /* Couldn't find 'em, release the control block */
                return;
        }
@@ -256,7 +253,7 @@ kern_return_t enable_bluebox(
        
        (void) pmap_enter(kernel_pmap,                                                  /* Map this into the kernel */
                kerndescaddr, physdescaddr, VM_PROT_READ|VM_PROT_WRITE, 
        
        (void) pmap_enter(kernel_pmap,                                                  /* Map this into the kernel */
                kerndescaddr, physdescaddr, VM_PROT_READ|VM_PROT_WRITE, 
-               TRUE);
+               VM_WIMG_USE_DEFAULT, TRUE);
        
        th->top_act->mact.bbDescAddr = (unsigned int)kerndescaddr+origdescoffset;       /* Set kernel address of the table */
        th->top_act->mact.bbUserDA = (unsigned int)Desc_TableStart;     /* Set user address of the table */
        
        th->top_act->mact.bbDescAddr = (unsigned int)kerndescaddr+origdescoffset;       /* Set kernel address of the table */
        th->top_act->mact.bbUserDA = (unsigned int)Desc_TableStart;     /* Set user address of the table */