Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2013 10:28:45 GMT
From:      Jonathan Anderson <jonathan@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 229807 for review
Message-ID:  <201306171028.r5HASjmP090653@skunkworks.freebsd.org>

index | next in thread | raw e-mail

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

Change 229807 by jonathan@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)


help

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