]> xenbits.xensource.com Git - people/liuw/rumprun.git/commitdiff
rename also amd64 cpu_sched.S to avoid .c naming collision
authorAntti Kantee <pooka@iki.fi>
Mon, 20 Apr 2015 20:45:25 +0000 (20:45 +0000)
committerAntti Kantee <pooka@iki.fi>
Mon, 20 Apr 2015 20:45:25 +0000 (20:45 +0000)
lib/librumprun_core/arch/amd64/Makefile.inc
lib/librumprun_core/arch/amd64/cpu_sched.S [deleted file]
lib/librumprun_core/arch/amd64/cpu_sched_switch.S [new file with mode: 0644]

index d2ee7d06a776293bf0b36e13ec3c4ec006193b2f..7bc171342d1ee876cc81df9c82c8436a0aabf9b0 100644 (file)
@@ -1,4 +1,4 @@
 MYDIR:=        ${.PARSEDIR}
 .PATH: ${MYDIR}
 
-SRCS+= cpu_sched.S
+SRCS+= cpu_sched_switch.S
diff --git a/lib/librumprun_core/arch/amd64/cpu_sched.S b/lib/librumprun_core/arch/amd64/cpu_sched.S
deleted file mode 100644 (file)
index a27d24c..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*-
- ****************************************************************************
- * (C) 2005 - Grzegorz Milos - Intel Research Cambridge
- ****************************************************************************
- *
- *        File: sched.c
- *      Author: Grzegorz Milos
- *     Changes: Robert Kaiser
- *              
- *        Date: Aug 2005
- * 
- * Environment: Xen Minimal OS
- * Description: simple scheduler for Mini-Os
- *
- * The scheduler is non-preemptive (cooperative), and schedules according 
- * to Round Robin algorithm.
- *
- ****************************************************************************
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
- * deal in the Software without restriction, including without limitation the
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- * 
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- * 
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
- * DEALINGS IN THE SOFTWARE.
- */
-
-#include <bmk-core/amd64/asm.h>
-
-ENTRY(bmk_cpu_sched_bouncer)
-       popq %rdi
-       popq %rbx
-       pushq $0                        /* correct stack alignment for SSE */
-       pushq $0
-       xorq %rbp,%rbp
-       call *%rbx
-       call bmk_sched_exit
-END(bmk_cpu_sched_bouncer)
-
-ENTRY(bmk__cpu_switch)
-       pushq %rbp
-       pushq %rbx
-       pushq %r12
-       pushq %r13
-       pushq %r14
-       pushq %r15
-       movq %rsp, (%rdi)               /* save ESP */
-       movq (%rsi), %rsp               /* restore ESP */
-       movq $1f, 8(%rdi)               /* save EIP */
-       pushq 8(%rsi)                   /* restore EIP */
-       ret
-1:
-       popq %r15
-       popq %r14
-       popq %r13
-       popq %r12
-       popq %rbx
-       popq %rbp
-       ret
-END(bmk__cpu_switch)
diff --git a/lib/librumprun_core/arch/amd64/cpu_sched_switch.S b/lib/librumprun_core/arch/amd64/cpu_sched_switch.S
new file mode 100644 (file)
index 0000000..4747652
--- /dev/null
@@ -0,0 +1,70 @@
+/*-
+ ****************************************************************************
+ * (C) 2005 - Grzegorz Milos - Intel Research Cambridge
+ ****************************************************************************
+ *
+ *        File: sched.c
+ *      Author: Grzegorz Milos
+ *     Changes: Robert Kaiser
+ *
+ *        Date: Aug 2005
+ *
+ * Environment: Xen Minimal OS
+ * Description: simple scheduler for Mini-Os
+ *
+ * The scheduler is non-preemptive (cooperative), and schedules according
+ * to Round Robin algorithm.
+ *
+ ****************************************************************************
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#include <bmk-core/amd64/asm.h>
+
+ENTRY(bmk_cpu_sched_bouncer)
+       popq %rdi
+       popq %rbx
+       pushq $0                        /* correct stack alignment for SSE */
+       pushq $0
+       xorq %rbp,%rbp
+       call *%rbx
+       call bmk_sched_exit
+END(bmk_cpu_sched_bouncer)
+
+ENTRY(bmk__cpu_switch)
+       pushq %rbp
+       pushq %rbx
+       pushq %r12
+       pushq %r13
+       pushq %r14
+       pushq %r15
+       movq %rsp, (%rdi)               /* save ESP */
+       movq (%rsi), %rsp               /* restore ESP */
+       movq $1f, 8(%rdi)               /* save EIP */
+       pushq 8(%rsi)                   /* restore EIP */
+       ret
+1:
+       popq %r15
+       popq %r14
+       popq %r13
+       popq %r12
+       popq %rbx
+       popq %rbp
+       ret
+END(bmk__cpu_switch)