1*541ff757Sriastradh /* $NetBSD: kloader.h,v 1.7 2020/09/06 17:19:46 riastradh Exp $ */ 2f39553ccSuch 3f39553ccSuch /*- 43a292b1bSuch * Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc. 5f39553ccSuch * All rights reserved. 6f39553ccSuch * 7f39553ccSuch * Redistribution and use in source and binary forms, with or without 8f39553ccSuch * modification, are permitted provided that the following conditions 9f39553ccSuch * are met: 10f39553ccSuch * 1. Redistributions of source code must retain the above copyright 11f39553ccSuch * notice, this list of conditions and the following disclaimer. 12f39553ccSuch * 2. Redistributions in binary form must reproduce the above copyright 13f39553ccSuch * notice, this list of conditions and the following disclaimer in the 14f39553ccSuch * documentation and/or other materials provided with the distribution. 15f39553ccSuch * 16f39553ccSuch * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17f39553ccSuch * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18f39553ccSuch * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19f39553ccSuch * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20f39553ccSuch * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21f39553ccSuch * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22f39553ccSuch * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23f39553ccSuch * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24f39553ccSuch * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25f39553ccSuch * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26f39553ccSuch * POSSIBILITY OF SUCH DAMAGE. 27f39553ccSuch */ 28f39553ccSuch 29*541ff757Sriastradh #ifndef _HPCMIPS_KLOADER_H_ 30*541ff757Sriastradh #define _HPCMIPS_KLOADER_H_ 31*541ff757Sriastradh 323a292b1bSuch #include <dev/kloader.h> 33f39553ccSuch 349b83c0f5Smatt #include <uvm/uvm_extern.h> 35*541ff757Sriastradh #include <uvm/uvm_page.h> 369b83c0f5Smatt 379b83c0f5Smatt #include <mips/cpuregs.h> 389b83c0f5Smatt 39f39553ccSuch #define PG_VADDR(pg) MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg)) 40f39553ccSuch 41fbade1d5Stsutsui /* XXX: kludge: MI kloader.c assumes avail_start and avail_end are common */ 429b83c0f5Smatt #define avail_start pmap_limits.avail_start 439b83c0f5Smatt #define avail_end pmap_limits.avail_end 44*541ff757Sriastradh 45*541ff757Sriastradh #endif /* _HPCMIPS_KLOADER_H_ */ 46