svn commit: r268322 - projects/arm64/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Sun Jul 6 16:42:04 UTC 2014


Author: andrew
Date: Sun Jul  6 16:42:04 2014
New Revision: 268322
URL: http://svnweb.freebsd.org/changeset/base/268322

Log:
  Move cpu_throw and cpu_switch to swtch.S.

Modified:
  projects/arm64/sys/arm64/arm64/machdep.c
  projects/arm64/sys/arm64/arm64/swtch.S

Modified: projects/arm64/sys/arm64/arm64/machdep.c
==============================================================================
--- projects/arm64/sys/arm64/arm64/machdep.c	Sun Jul  6 16:20:37 2014	(r268321)
+++ projects/arm64/sys/arm64/arm64/machdep.c	Sun Jul  6 16:42:04 2014	(r268322)
@@ -209,19 +209,6 @@ cpu_pcpu_init(struct pcpu *pcpu, int cpu
 {
 }
 
-/* TODO: Move to swtch.S and implemenet */
-void cpu_throw(struct thread *old, struct thread *new)
-{
-
-	panic("cpu_throw");
-}
-
-void cpu_switch(struct thread *old, struct thread *new, struct mtx *mtx)
-{
-
-	panic("cpu_switch");
-}
-
 void
 spinlock_enter(void)
 {

Modified: projects/arm64/sys/arm64/arm64/swtch.S
==============================================================================
--- projects/arm64/sys/arm64/arm64/swtch.S	Sun Jul  6 16:20:37 2014	(r268321)
+++ projects/arm64/sys/arm64/arm64/swtch.S	Sun Jul  6 16:42:04 2014	(r268322)
@@ -25,10 +25,34 @@
  *
  */
 
+#include "assym.s"
+
 #include <machine/asm.h>
 
 __FBSDID("$FreeBSD$");
 
+/*
+ * void cpu_throw(struct thread *old, struct thread *new)
+ */
+ENTRY(cpu_throw)
+	adr	x0, .Lcpu_throw_panic_str
+	bl	_C_LABEL(panic)
+	ret
+.Lcpu_throw_panic_str:
+	.asciz "cpu_throw\0\0"
+END(cpu_throw)
+
+/*
+ * void cpu_switch(struct thread *old, struct thread *new, struct mtx *mtx)
+ */
+ENTRY(cpu_switch)
+	adr	x0, .Lcpu_switch_panic_str
+	bl	_C_LABEL(panic)
+	ret
+.Lcpu_switch_panic_str:
+	.asciz "cpu_switch\0"
+END(cpu_throw)
+
 ENTRY(savectx)
 	adr	x0, .Lsavectx_panic_str
 	bl	panic


More information about the svn-src-projects mailing list