Add UVM support.

This commit is contained in:
tv 1998-06-12 23:08:52 +00:00
parent b6ac862e01
commit 49fd1860fe
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa_irq.S,v 1.1 1998/06/08 17:49:44 tv Exp $ */
/* $NetBSD: isa_irq.S,v 1.2 1998/06/12 23:08:52 tv Exp $ */
/*
* Copyright 1997
@ -83,6 +83,7 @@
#include <arm32/isa/icu.h>
#include <machine/asm.h>
#include <machine/irqhandler.h>
#include "opt_uvm.h"
sp .req r13
lr .req r14
@ -455,7 +456,11 @@ ENTRY(irq_setmasks)
Lcnt:
#if defined(UVM)
.word _uvmexp
#else
.word _cnt
#endif
Lintrcnt:
.word _intrcnt

View File

@ -1,4 +1,4 @@
/* $NetBSD: ofw.c,v 1.5 1998/06/10 21:55:30 tv Exp $ */
/* $NetBSD: ofw.c,v 1.6 1998/06/12 23:08:53 tv Exp $ */
/*
* Copyright 1997
@ -101,6 +101,7 @@
#include "arm32/isa/isa_machdep.h"
#endif
#include "opt_uvm.h"
#include "pc.h"
#define IO_VIRT_BASE (OFW_VIRT_BASE + OFW_VIRT_SIZE)
@ -1259,8 +1260,12 @@ printf("forcing align to be 0x%x\n", align);
#endif
args_n_results[nargs + 1] =
#if defined(UVM)
uvm_pglistalloc(size, low, high, align, 0, &alloclist, 1, 0);
#else
vm_page_alloc_memory(size, low, high, align, 0, &alloclist,
1, 0);
#endif
#if 0
printf(" -> 0x%lx", args_n_results[nargs + 1]);
#endif