Deleted Added
full compact
machdep.c (20578) machdep.c (20641)
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
1/*-
2 * Copyright (c) 1992 Terrence R. Lambert.
3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * William Jolitz.
8 *

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

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
38 * $Id: machdep.c,v 1.220 1996/12/14 22:18:38 jkh Exp $
38 * $Id: machdep.c,v 1.221 1996/12/17 04:19:41 davidg Exp $
39 */
40
41#include "npx.h"
42#include "opt_sysvipc.h"
43#include "opt_ddb.h"
44#include "opt_bounce.h"
45#include "opt_machdep.h"
46#include "opt_perfmon.h"

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

384 printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),
385 ptoa(cnt.v_free_count) / 1024);
386
387 /*
388 * Set up buffers, so they can be used to read disk labels.
389 */
390 bufinit();
391 vm_pager_bufferinit();
39 */
40
41#include "npx.h"
42#include "opt_sysvipc.h"
43#include "opt_ddb.h"
44#include "opt_bounce.h"
45#include "opt_machdep.h"
46#include "opt_perfmon.h"

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

384 printf("avail memory = %d (%dK bytes)\n", ptoa(cnt.v_free_count),
385 ptoa(cnt.v_free_count) / 1024);
386
387 /*
388 * Set up buffers, so they can be used to read disk labels.
389 */
390 bufinit();
391 vm_pager_bufferinit();
392
393 /*
394 * In verbose mode, print out the BIOS's idea of the disk geometries.
395 */
396 if (bootverbose) {
397 printf("BIOS Geometries:\n");
398 for (i = 0; i < N_BIOS_GEOM; i++) {
399 unsigned long bios_geom;
400 int max_cylinder, max_head, max_sector;
401
402 bios_geom = bootinfo.bi_bios_geom[i];
403
404 /*
405 * XXX the bootstrap punts a 1200K floppy geometry
406 * when the get-disk-geometry interrupt fails. Skip
407 * drives that have this geometry.
408 */
409 if (bios_geom == 0x4f010f)
410 continue;
411
412 printf(" %x:%08lx ", i, bios_geom);
413 max_cylinder = bios_geom >> 16;
414 max_head = (bios_geom >> 8) & 0xff;
415 max_sector = bios_geom & 0xff;
416 printf(
417 "0..%d=%d cylinders, 0..%d=%d heads, 1..%d=%d sectors\n",
418 max_cylinder, max_cylinder + 1,
419 max_head, max_head + 1,
420 max_sector, max_sector);
421 }
422 }
423}
424
425int
426register_netisr(num, handler)
427 int num;
428 netisr_t *handler;
429{
430

--- 1105 unchanged lines hidden ---
392}
393
394int
395register_netisr(num, handler)
396 int num;
397 netisr_t *handler;
398{
399

--- 1105 unchanged lines hidden ---