Date: Sun, 6 Jul 2014 16:42:04 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r268322 - projects/arm64/sys/arm64/arm64 Message-ID: <201407061642.s66Gg4BM093547@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407061642.s66Gg4BM093547>