From owner-p4-projects@FreeBSD.ORG Fri Jul 7 10:52:12 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9EF2816A4E2; Fri, 7 Jul 2006 10:52:12 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47F4816A4DD for ; Fri, 7 Jul 2006 10:52:12 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0084443D58 for ; Fri, 7 Jul 2006 10:52:11 +0000 (GMT) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k67AqBJf088613 for ; Fri, 7 Jul 2006 10:52:11 GMT (envelope-from wkoszek@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k67AqBI7088610 for perforce@freebsd.org; Fri, 7 Jul 2006 10:52:11 GMT (envelope-from wkoszek@FreeBSD.org) Date: Fri, 7 Jul 2006 10:52:11 GMT Message-Id: <200607071052.k67AqBI7088610@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to wkoszek@FreeBSD.org using -f From: "Wojciech A. Koszek" To: Perforce Change Reviews Cc: Subject: PERFORCE change 100857 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 10:52:12 -0000 http://perforce.freebsd.org/chv.cgi?CH=100857 Change 100857 by wkoszek@wkoszek_laptop on 2006/07/07 10:51:43 Bring tlb.c, uio_machdep.c and vm_machdep.c to the tree. They're populated with stub entries for now. tlb.c is borrowed from old MIPS code by juli@. Some formatting strings should be fixed. Affected files ... .. //depot/projects/mips2/src/sys/conf/files.mips#7 edit .. //depot/projects/mips2/src/sys/mips/mips/machdep.c#3 edit .. //depot/projects/mips2/src/sys/mips/mips/tlb.c#1 add .. //depot/projects/mips2/src/sys/mips/mips/uio_machdep.c#2 edit .. //depot/projects/mips2/src/sys/mips/mips/vm_machdep.c#1 add Differences ... ==== //depot/projects/mips2/src/sys/conf/files.mips#7 (text+ko) ==== @@ -2,6 +2,7 @@ mips/mips/autoconf.c standard mips/mips/busdma_machdep.c standard mips/mips/copystr.S standard +mips/mips/cpu.c standard mips/mips/db_disasm.c optional ddb mips/mips/db_interface.c optional ddb mips/mips/db_trace.c optional ddb @@ -17,8 +18,11 @@ mips/mips/support.S standard mips/mips/swtch.S standard mips/mips/sys_machdep.c standard +mips/mips/tlb.c standard mips/mips/trap.c standard mips/mips/uio_machdep.c standard +mips/mips/uio_machdep.c standard +mips/mips/vm_machdep.c standard geom/geom_bsd.c standard geom/geom_bsd_enc.c standard geom/geom_mbr.c standard ==== //depot/projects/mips2/src/sys/mips/mips/machdep.c#3 (text+ko) ==== @@ -237,3 +237,28 @@ { return (-1); } + +/* + * XXXMIPS: + */ +void +spinlock_enter(void) +{ + +} + +void +spinlock_exit(void) +{ + +} + +/* + * XXXMIPS: This might be a wrong place for it, but stick platform_halt() to + * this file until we find a better place for it. + */ +void +platform_halt(void) +{ + +} ==== //depot/projects/mips2/src/sys/mips/mips/uio_machdep.c#2 (text+ko) ==== @@ -1,21 +1,21 @@ /*- - * Copyright (c) 2006 Fill this file and put your name here + * Copyright (c) [year] [your name] * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions, and the following disclaimer, - * without modification, immediately at the beginning of the file. - * 2. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT @@ -23,7 +23,31 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $Id$ */ - #include __FBSDID("$FreeBSD$"); + +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +#include + +/* + * Implement uiomove(9) from physical memory using sf_bufs to + * avoid the creation and destruction of ephemeral mappings. + */ +int +uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) +{ + return (0); +}