X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Femul%2Fswitch_x86_64.s;h=1632c816d4b01512c7fb554043aed9d7b8a259aa;hb=a9d1483df4bd7d32fac7ff6207d9d938012d2989;hp=df511d669de79683a2094deba00709012fd2e77e;hpb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;p=bertos.git diff --git a/bertos/emul/switch_x86_64.s b/bertos/emul/switch_x86_64.s index df511d66..1632c816 100644 --- a/bertos/emul/switch_x86_64.s +++ b/bertos/emul/switch_x86_64.s @@ -1,48 +1,42 @@ -/*! +/** * \file * * - * \brief i386 context switch - * * \version $Id$ - * * \author Bernie Innocenti - */ - -/* - * $Log$ - * Revision 1.4 2006/09/20 14:02:49 marco - * C-style comment. - * - * Revision 1.3 2006/02/24 01:35:40 bernie - * Update for new emulator. - * - * Revision 1.2 2006/02/24 01:17:05 bernie - * Update for new emulator. - * - * Revision 1.1 2005/11/27 03:06:15 bernie - * Add x86_64 task switching (to be updated to new-style scheduler). - * - * Revision 1.1 2005/11/14 21:06:38 bernie - * Add x86_64 support. - * - * Revision 1.2 2004/06/06 16:14:12 bernie - * Add DevLib license information. - * - * Revision 1.1 2004/05/23 17:27:00 bernie - * Import kern/ subdirectory. * + * \brief i386 context switch */ -/* I know it's ugly... */ -/* .intel_syntax */ - -/* void AsmSwitchContext(void **new_sp, void **save_sp) */ -/* %rdi %rsi */ +/* void asm_switch_context(void **new_sp [%rdi], void **save_sp [%rsi]) */ .globl asm_switch_context asm_switch_context: pushq %rax @@ -62,10 +56,3 @@ asm_switch_context: popq %rbx popq %rax ret - -/* int asm_switch_version(void) */ -.globl asm_switch_version -asm_switch_version: - mov $1,%rax - ret -