Fix printfs with too few or too many parms, remove unused vars, fix incorrect flag tests, other code cleanup.
This commit is contained in:
@@ -49,7 +49,7 @@ printf("ld_dr7(0x%x)\n",dr7);
|
||||
case 3: ld_dr3(linaddr); break;
|
||||
default: panic(__FILE__, "invalid breakpoint index", __LINE__);
|
||||
}
|
||||
printf("ld_dr%d(0x%x, 0x%x)\n",bp,linaddr);
|
||||
printf("ld_dr%d(0x%x)\n",bp,linaddr);
|
||||
|
||||
/* set new flags */
|
||||
dr7 |= dr7flags;
|
||||
|
||||
@@ -32,7 +32,7 @@ PUBLIC int do_clear(struct proc * caller, message * m_ptr)
|
||||
rc = proc_addr(exit_p); /* clean up */
|
||||
|
||||
/* Don't clear if already cleared. */
|
||||
if(isemptyp(rc)) return;
|
||||
if(isemptyp(rc)) return OK;
|
||||
|
||||
/* Check the table with IRQ hooks to see if hooks should be released. */
|
||||
for (i=0; i < NR_IRQ_HOOKS; i++) {
|
||||
|
||||
@@ -35,14 +35,12 @@ PUBLIC int do_update(struct proc * caller, message * m_ptr)
|
||||
*/
|
||||
endpoint_t src_e, dst_e;
|
||||
int src_p, dst_p;
|
||||
struct proc *src_rp, *dst_rp, *rp;
|
||||
struct proc *src_rp, *dst_rp;
|
||||
struct priv *src_privp, *dst_privp;
|
||||
struct proc orig_src_proc;
|
||||
struct proc orig_dst_proc;
|
||||
struct priv orig_src_priv;
|
||||
struct priv orig_dst_priv;
|
||||
int r;
|
||||
reg_t src_vbp, dst_vbp;
|
||||
|
||||
/* Lookup slots for source and destination process. */
|
||||
src_e = m_ptr->SYS_UPD_SRC_ENDPT;
|
||||
|
||||
@@ -21,7 +21,6 @@ PUBLIC int do_vmctl(struct proc * caller, message * m_ptr)
|
||||
int proc_nr;
|
||||
endpoint_t ep = m_ptr->SVMCTL_WHO;
|
||||
struct proc *p, *rp, *target;
|
||||
int err;
|
||||
|
||||
if(ep == SELF) { ep = m_ptr->m_source; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user