PERFORCE change 229807 for review

Jonathan Anderson jonathan at FreeBSD.org
Mon Jun 17 10:28:45 UTC 2013


http://p4web.freebsd.org/@@229807?ac=10

Change 229807 by jonathan at jonathan-on-zenith on 2013/06/17 10:28:40

	Better syscall prototype for amd64.

Affected files ...

.. //depot/projects/ctsrd/tesla/src/sys/sys/tesla-kernel.h#3 edit

Differences ...

==== //depot/projects/ctsrd/tesla/src/sys/sys/tesla-kernel.h#3 (text+ko) ====

@@ -36,24 +36,23 @@
  */
 
 /*
- * Un-protyped functions that we care about.
- *
- * XXXRW: Solution is actually to prototype them properly.  Some don't have
- * consistent prototypes across architectures.
+ * Convenient assertion wrappers for various scopes.
  */
+
+#if defined(__amd64__)
+extern void amd64_syscall(struct trapframe *, int);
+#define	TESLA_SYSCALL(x)	TESLA_WITHIN(amd64_syscall, x)
+#else
 extern void syscall(void);
-extern void trap_pfault(struct trapframe *, int, vm_offset_t);
-
-/*
- * Convenient assertion wrappers for various scopes.
- */
 #define	TESLA_SYSCALL(x)	TESLA_WITHIN(syscall, x)
+#endif
 
 /*
  * XXXRW: Not all architectures have a trap_pfault() function.  Can't use
  * vm_fault() as it is used in non-trap contexts -- e.g., PMAP initialisation.
  */
 #if 0
+extern void trap_pfault(struct trapframe *, int, vm_offset_t);
 #define	TESLA_PAGE_FAULT(x)	TESLA_WITHIN(trap_pfault, x)
 #else
 #define	TESLA_PAGE_FAULT(x)


More information about the p4-projects mailing list