Date: Fri, 7 Jul 2006 14:24:55 GMT From: "Wojciech A. Koszek" <wkoszek@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100885 for review Message-ID: <200607071424.k67EOtuO024237@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100885 Change 100885 by wkoszek@wkoszek_laptop on 2006/07/07 14:24:37 Bring sigreturn() and cpu_clock* stuff to machdep.c Note that cpu_clock* functions should go to clock.c at some stage. juli's code have those split between architecture variants, but those files are also stub calls there. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/machdep.c#7 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/machdep.c#7 (text+ko) ==== @@ -42,6 +42,8 @@ #include <sys/kdb.h> #include <sys/ptrace.h> #include <sys/reboot.h> +#include <sys/signalvar.h> +#include <sys/sysproto.h> #include <sys/user.h> #include <vm/vm.h> @@ -59,6 +61,10 @@ #include <machine/md_var.h> #include <machine/pte.h> #include <machine/tlb.h> +/* + * XXXMIPS: Required by cpu_clock* stuff. + */ +#include <machine/clock.h> #ifdef DDB #include <ddb/ddb.h> @@ -298,3 +304,55 @@ } +int +sigreturn(td, uap) + struct thread *td; + struct sigreturn_args /* { + const struct __ucontext *sigcntxp; + } */ *uap; +{ + return (0); +} + +/* + * XXXMIPS: Put more stuff, which should probably go to clock.c + */ +void +cpu_initclocks() +{ + +} + +/* + * Nothing to do. + */ +void +cpu_startprofclock(void) +{ + + /* Do nothing */ +} + +void +cpu_stopprofclock(void) +{ +} + +/* + * Wait for about n microseconds (at least!). + */ +void +DELAY(int n) +{ + +} + +/* + * XXX Needed by syscons + */ +int +sysbeep(int pitch, int period) +{ + + return (0); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607071424.k67EOtuO024237>