From owner-p4-projects@FreeBSD.ORG Thu Aug 10 21:27:25 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 448DB16A4E0; Thu, 10 Aug 2006 21:27:25 +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 E108916A4DA for ; Thu, 10 Aug 2006 21:27:24 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F4F43D49 for ; Thu, 10 Aug 2006 21:27:24 +0000 (GMT) (envelope-from gonzo@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 k7ALROGp069979 for ; Thu, 10 Aug 2006 21:27:24 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7ALROFt069976 for perforce@freebsd.org; Thu, 10 Aug 2006 21:27:24 GMT (envelope-from gonzo@FreeBSD.org) Date: Thu, 10 Aug 2006 21:27:24 GMT Message-Id: <200608102127.k7ALROFt069976@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 103601 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: Thu, 10 Aug 2006 21:27:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=103601 Change 103601 by gonzo@gonzo_hq on 2006/08/10 21:26:50 o Add stubs of break istruction and panic. To track down unimplemented functions. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/mem.c#4 edit .. //depot/projects/mips2/src/sys/mips/mips/support.S#7 edit .. //depot/projects/mips2/src/sys/mips/mips/uio_machdep.c#3 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/mem.c#4 (text+ko) ==== @@ -60,6 +60,7 @@ int memrw(struct cdev *dev, struct uio *uio, int flags) { + __asm __volatile ("break"); return (0); } @@ -67,6 +68,7 @@ memmmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int prot __unused) { + __asm __volatile ("break"); return (0); } @@ -74,6 +76,7 @@ memioctl(struct cdev *dev __unused, u_long cmd, caddr_t data, int flags, struct thread *td) { + __asm __volatile ("break"); return (0); } ==== //depot/projects/mips2/src/sys/mips/mips/support.S#7 (text+ko) ==== @@ -64,17 +64,17 @@ */ ENTRY(bcmp) beqz a2, 2f - li v0, 0 + nop 1: subu a2, 1 - lbu t0, 0(a0) - lbu t1, 0(a1) - bne t0, t1, 2f - nop + lb t0, 0(a0) + lb t1, 0(a1) + bne t0, t1, 3f + li v0, 1 addu a0, 1 addu a1, 1 bnezl a2, 1b nop -2: li v0, 1 +2: li v0, 0 3: jr ra nop END(bcmp) @@ -128,6 +128,7 @@ * int subyte(void *addr, int byte) */ ENTRY(subyte) + break li v0, -1 jr ra nop @@ -138,6 +139,7 @@ * int susword(void *addr, int shortword) */ ENTRY(susword) + break li v0, -1 jr ra nop @@ -148,6 +150,7 @@ * int suswintr(void *addr, int shortword) */ ENTRY(suswintr) + break li v0, -1 jr ra nop @@ -158,6 +161,7 @@ * int suword(void *addr, long word) */ ENTRY(suword) + break li v0, -1 jr ra nop @@ -168,6 +172,7 @@ * int suword32(void *addr, int word) */ ENTRY(suword32) + break li v0, -1 jr ra nop @@ -178,6 +183,7 @@ * int suword64(void *addr, long word) */ ENTRY(suword64) + break li v0, -1 jr ra nop @@ -204,6 +210,7 @@ * int fubyte(const void *addr) */ ENTRY(fubyte) + break li v0, -1 jr ra nop @@ -214,6 +221,7 @@ * int fusword(const void *addr) */ ENTRY(fusword) + break li v0, -1 jr ra nop @@ -224,6 +232,7 @@ * int fuswintr(const void *addr) */ ENTRY(fuswintr) + break li v0, -1 jr ra nop @@ -234,6 +243,7 @@ * long fuword(const void *addr) */ ENTRY(fuword) + break li v0, -1 jr ra nop @@ -244,6 +254,7 @@ * int fuword32(const void *addr) */ ENTRY(fuword32) + break li v0, -1 jr ra nop @@ -263,6 +274,7 @@ * int copyin(const void *useraddr, void *kernaddr, size_t len) */ ENTRY(copyin) + break jr ra nop END(copyin) @@ -272,6 +284,7 @@ * int copyout(const void *kernaddr, void *useraddr, size_t len) */ ENTRY(copyout) + break jr ra nop END(copyout) ==== //depot/projects/mips2/src/sys/mips/mips/uio_machdep.c#3 (text+ko) ==== @@ -49,5 +49,6 @@ int uiomove_fromphys(vm_page_t ma[], vm_offset_t offset, int n, struct uio *uio) { + panic("unimplemented"); return (0); }