sbe_mlst(p)
int p;
{ register struct smblk *sm, *smf, *smb;
- char *nextaddr;
+ char *nextaddr = NULL;
int i;
struct ptab smtab; /* For loop detection */
assert (orp->or_mode == OR_M_ENABLED);
assert (orp->or_flags & OR_F_ENABLED);
+ /* CvR: copied from or_writev_s(), since txfid was not initialized. */
+ txfid = orp->or_tx.or_txfid;
+
if (vectored) {
int iov_offset = 0;
#define BUF_ALIGNMENT (64*1024)
if(!(mallocbuf = alloc_contig(BUF_ALIGNMENT + tot_bufsize, 0, &buf))) {
- panic("RTL8139","Couldn't allocate kernel buffer",i);
+ panic("RTL8139","Couldn't allocate kernel buffer",NO_NUM);
}
/* click-align mallocced buffer. this is what we used to get
PUBLIC int vm_contiguous(struct proc *targetproc, u32_t vir_buf, size_t bytes)
{
int first = 1, r;
- u32_t prev_phys, po;
+ u32_t prev_phys = 0; /* Keep lints happy. */
+ u32_t po;
vmassert(targetproc);
vmassert(bytes > 0);
*/
PRIVATE void enqueue_head(struct proc *rp)
{
- int q; /* scheduling queue to use */
+ int q = rp->p_priority; /* scheduling queue to use */
#if DEBUG_SCHED_CHECK
if (rp->p_ready) minix_panic("enqueue already ready process", NO_NUM);
vmassert(q >= 0);
- q = rp->p_priority;
/* Now add the process to the queue. */
if (rdy_head[q] == NIL_PROC) { /* add to empty queue */