Date: Thu, 10 Aug 2006 21:27:24 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103601 for review Message-ID: <200608102127.k7ALROFt069976@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 @@ * <v0>int subyte(<a0>void *addr, <a1>int byte) */ ENTRY(subyte) + break li v0, -1 jr ra nop @@ -138,6 +139,7 @@ * <v0>int susword(<a0>void *addr, <a1>int shortword) */ ENTRY(susword) + break li v0, -1 jr ra nop @@ -148,6 +150,7 @@ * <v0>int suswintr(<a0>void *addr, <a1>int shortword) */ ENTRY(suswintr) + break li v0, -1 jr ra nop @@ -158,6 +161,7 @@ * <v0>int suword(<a0>void *addr, <a1>long word) */ ENTRY(suword) + break li v0, -1 jr ra nop @@ -168,6 +172,7 @@ * <v0>int suword32(<a0>void *addr, <a1>int word) */ ENTRY(suword32) + break li v0, -1 jr ra nop @@ -178,6 +183,7 @@ * <v0>int suword64(<a0>void *addr, <a1>long word) */ ENTRY(suword64) + break li v0, -1 jr ra nop @@ -204,6 +210,7 @@ * <v0>int fubyte(<a0>const void *addr) */ ENTRY(fubyte) + break li v0, -1 jr ra nop @@ -214,6 +221,7 @@ * <v0>int fusword(<a0>const void *addr) */ ENTRY(fusword) + break li v0, -1 jr ra nop @@ -224,6 +232,7 @@ * <v0>int fuswintr(<a0>const void *addr) */ ENTRY(fuswintr) + break li v0, -1 jr ra nop @@ -234,6 +243,7 @@ * <v0>long fuword(<a0>const void *addr) */ ENTRY(fuword) + break li v0, -1 jr ra nop @@ -244,6 +254,7 @@ * <v0>int fuword32(<a0>const void *addr) */ ENTRY(fuword32) + break li v0, -1 jr ra nop @@ -263,6 +274,7 @@ * <v0>int copyin(<a0>const void *useraddr, <a1>void *kernaddr, <a2>size_t len) */ ENTRY(copyin) + break jr ra nop END(copyin) @@ -272,6 +284,7 @@ * <v0>int copyout(<a0>const void *kernaddr, <a1>void *useraddr, <a2>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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608102127.k7ALROFt069976>