Deleted Added
full compact
kern_physio.c (45358) kern_physio.c (46580)
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. Modifications may be freely made to this file if the above conditions
17 * are met.
18 *
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice immediately at the beginning of the file, without modification,
10 * this list of conditions, and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. Modifications may be freely made to this file if the above conditions
17 * are met.
18 *
19 * $Id: kern_physio.c,v 1.30 1999/01/21 08:29:04 dillon Exp $
19 * $Id: kern_physio.c,v 1.31 1999/04/06 03:04:47 peter Exp $
20 */
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/buf.h>
25#include <sys/conf.h>
26#include <sys/proc.h>
27#include <sys/uio.h>

--- 39 unchanged lines hidden (view full) ---

67 } else {
68 bp = bpa;
69 }
70
71 /*
72 * get a copy of the kva from the physical buffer
73 */
74 sa = bpa->b_data;
20 */
21
22#include <sys/param.h>
23#include <sys/systm.h>
24#include <sys/buf.h>
25#include <sys/conf.h>
26#include <sys/proc.h>
27#include <sys/uio.h>

--- 39 unchanged lines hidden (view full) ---

67 } else {
68 bp = bpa;
69 }
70
71 /*
72 * get a copy of the kva from the physical buffer
73 */
74 sa = bpa->b_data;
75 bp->b_proc = curproc;
76 error = bp->b_error = 0;
77
78 for(i=0;i<uio->uio_iovcnt;i++) {
79 while( uio->uio_iov[i].iov_len) {
80
81 bp->b_dev = dev;
82 bp->b_bcount = uio->uio_iov[i].iov_len;
83 bp->b_flags = B_BUSY | B_PHYS | B_CALL | bufflags;

--- 132 unchanged lines hidden ---
75 error = bp->b_error = 0;
76
77 for(i=0;i<uio->uio_iovcnt;i++) {
78 while( uio->uio_iov[i].iov_len) {
79
80 bp->b_dev = dev;
81 bp->b_bcount = uio->uio_iov[i].iov_len;
82 bp->b_flags = B_BUSY | B_PHYS | B_CALL | bufflags;

--- 132 unchanged lines hidden ---