Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2006 10:03:33 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 108298 for review
Message-ID:  <200610231003.k9NA3Xlw004909@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108298

Change 108298 by gonzo@gonzo_hq on 2006/10/23 10:03:31

	o Does not provide empty stubs. Fill them with "break" instruction
	    to detect unimplemented functions on early stages instead of 
	    spending hours narrowing down bug to these subroutines.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/machdep.c#22 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/machdep.c#22 (text+ko) ====

@@ -196,84 +196,77 @@
 int
 get_mcontext(struct thread *td, mcontext_t *mcp, int clear_ret)
 {
-
+	__asm __volatile("break");
 	return (0);
 }
 
 int
 set_mcontext(struct thread *td, const mcontext_t *mcp)
 {
-
+	__asm __volatile("break");
 	return (0);
 }
 
 int
 fill_regs(struct thread *td, struct reg *regs)
 {
-
+	__asm __volatile("break");
 	return (0);
 }
 
 int
 fill_dbregs(struct thread *td, struct dbreg *dbregs)
 {
-
+	__asm __volatile("break");
 	return (0);
 }
 
 int
 fill_fpregs(struct thread *td, struct fpreg *fpregs)
 {
-
 	return (0);
 }
 
 int
 set_regs(struct thread *td, struct reg *regs)
 {
-
+	__asm __volatile("break");
 	return (0);
 }
 
 int
 set_dbregs(struct thread *td, struct dbreg *dbregs)
 {
-
 	return (0);
 }
 
 int
 set_fpregs(struct thread *td, struct fpreg *fpregs)
 {
-
 	return (0);
 }
 
 int
 ptrace_set_pc(struct thread *td, u_long addr)
 {
-
 	return (0);
 }
 
 int
 ptrace_clear_single_step(struct thread *td)
 {
-
 	return (0);
 }
 
 int
 ptrace_single_step(struct thread *td)
 {
-
 	return (0);
 }
 
 void
 cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t sz)
 {
-
 }
 
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610231003.k9NA3Xlw004909>