From c8554db595bcdb93e239d117f7222a1478c07706 Mon Sep 17 00:00:00 2001 From: verhaegs Date: Sat, 28 Apr 2007 00:13:53 +0000 Subject: [PATCH] r4575@vps: verhaegs | 2007-04-27 15:54:36 -0400 Removed unused dispatch.s files git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@25923 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/i386-all/dispatch.s | 158 ---------------------------------------- arch/x86_64-all/dispatch.s | 174 --------------------------------------------- 2 files changed, 332 deletions(-) delete mode 100644 arch/i386-all/dispatch.s delete mode 100644 arch/x86_64-all/dispatch.s diff --git a/arch/i386-all/dispatch.s b/arch/i386-all/dispatch.s deleted file mode 100644 index 75fed1deeb..0000000000 --- a/arch/i386-all/dispatch.s +++ /dev/null @@ -1,158 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id$ - - Desc: Exec function Dispatch() - Lang: english -*/ - -/****************************************************************************** - - NAME - AROS_LH0(void, Dispatch, - - LOCATION - struct ExecBase *, SysBase, 10, Exec) - - FUNCTION - - INPUTS - - RESULT - - NOTES - - EXAMPLE - - BUGS - - SEE ALSO - - INTERNALS - - HISTORY - -******************************************************************************/ - - #include "machine.i" - - .text - .balign 16 - .globl AROS_SLIB_ENTRY(Dispatch,Exec) - .type AROS_SLIB_ENTRY(Dispatch,Exec),@function - -AROS_SLIB_ENTRY(Dispatch,Exec): - /* Push all registers */ - pushl %eax - pushl %ebx - pushl %ecx - pushl %edx - pushl %edi - pushl %esi - pushl %ebp - - /* block all signals */ - call AROS_CSYMNAME(os_disable) - - /* Get SysBase again */ - movl 32(%esp),%ecx - - /* Store sp */ - movl ThisTask(%ecx),%edx - movl %esp,tc_SPReg(%edx) - - /* Switch bit set? */ - testb $TF_SWITCH,tc_Flags(%edx) - je 1f - movl tc_Switch(%edx),%eax - call *%eax - -1: - /* Store IDNestCnt */ - movb IDNestCnt(%ecx),%al - movb %al,tc_IDNestCnt(%edx) - movb $-1,IDNestCnt(%ecx) - - /* Get task from ready list */ - movl TaskReady(%ecx),%edx - movl (%edx),%eax - movl %eax,TaskReady(%ecx) - movl (%edx),%eax - leal TaskReady(%ecx),%ebx - movl %ebx,4(%eax) - movl %edx,ThisTask(%ecx) - - /* Use as current task */ - movb $TS_RUN,tc_State(%edx) - movb tc_IDNestCnt(%edx),%al - movb %al,IDNestCnt(%ecx) - - /* Launch bit set? */ - cmpb $0,tc_Flags(%edx) - jge 2f - movl tc_Launch(%edx),%eax - call *%eax - -2: - /* Get new sp */ - movl tc_SPReg(%edx),%eax - - /* Compare agains SPLower */ - cmpl %eax,tc_SPLower(%edx) - ja 3f - - /* Compare against SPUpper */ - cmpl %eax,tc_SPUpper(%edx) - ja 4f - -3: - /* Call Alert() */ - pushl %ecx - pushl $(AT_DeadEnd|AN_StackProbe) - leal Alert(%ecx),%eax - call *%eax - /* Function does not return */ - - nop - -4: - /* Put the SP into the correct register after checking */ - movl %eax,%esp - - /* Unblock signals if necessary */ - cmpb $0,tc_IDNestCnt(%edx) - jge 5f - - /* If called from the signal handler don't do it. */ - cmpl $0,AROS_CSYMNAME(supervisor) - jne 5f - call AROS_CSYMNAME(os_enable) - -5: - /* Except bit set? */ - testb $TF_EXCEPT,tc_Flags(%edx) - je 6f - - /* Raise task exception in Disable()d state */ - pushl %ecx - - /* leal Disable(%ecx),%eax - call *%eax */ - leal Exception(%ecx),%eax - call *%eax - /* movl (%esp),%ecx - leal Enable(%ecx),%eax */ - call *%eax - addl $4,%esp - - /* Restore registers and return */ -6: - popl %ebp - popl %esi - popl %edi - popl %edx - popl %ecx - popl %ebx - popl %eax - ret - diff --git a/arch/x86_64-all/dispatch.s b/arch/x86_64-all/dispatch.s deleted file mode 100644 index 25dc115a7d..0000000000 --- a/arch/x86_64-all/dispatch.s +++ /dev/null @@ -1,174 +0,0 @@ -/* - Copyright © 1995-2001, The AROS Development Team. All rights reserved. - $Id: dispatch.s 12742 2001-12-08 18:32:01Z chodorowski $ - - Desc: Exec function Dispatch() - Lang: english -*/ - -/****************************************************************************** - - NAME - AROS_LH0(void, Dispatch, - - LOCATION - struct ExecBase *, SysBase, 10, Exec) - - FUNCTION - - INPUTS - - RESULT - - NOTES - - EXAMPLE - - BUGS - - SEE ALSO - - INTERNALS - - HISTORY - -******************************************************************************/ - - #include "machine.i" - - .text - .balign 32 /* twice align of i386??? */ - .globl AROS_SLIB_ENTRY(Dispatch,Exec) - .type AROS_SLIB_ENTRY(Dispatch,Exec),@function - -AROS_SLIB_ENTRY(Dispatch,Exec): - /* Push all registers */ - push %rax - push %rbx - push %rcx - push %rdx - push %rdi - push %rsi - push %rbp - push %r8 - push %r9 - push %r10 - push %r11 - push %r12 - push %r13 - push %r14 - push %r15 - - /* block all signals */ - call AROS_CSYMNAME(os_disable) - - /* Get SysBase again */ - movl 64+56(%rsp),%rcx - - /* Store sp */ - mov ThisTask(%rcx),%rdx - mov %rsp,tc_SPReg(%rdx) - - /* Switch bit set? */ - testb $TF_SWITCH,tc_Flags(%rdx) - je 1f - mov tc_Switch(%rdx),%rax - call *%rax - -1: - /* Store IDNestCnt */ - movb IDNestCnt(%rcx),%al - movb %al,tc_IDNestCnt(%rdx) - movb $-1,IDNestCnt(%rcx) - - /* Get task from ready list */ - mov TaskReady(%rcx),%rdx - mov (%rdx),%rax - mov %rax,TaskReady(%rcx) - mov (%rdx),%rax - lea TaskReady(%rcx),%rbx - mov %rbx,8(%rax) - mov %rdx,ThisTask(%rcx) - - /* Use as current task */ - movb $TS_RUN,tc_State(%rdx) - movb tc_IDNestCnt(%rdx),%al - movb %al,IDNestCnt(%rcx) - - /* Launch bit set? */ - cmpb $0,tc_Flags(%rdx) - jge 2f - mov tc_Launch(%rdx),%rax - call *%rax - -2: - /* Get new sp */ - mov tc_SPReg(%rdx),%rax - - /* Compare agains SPLower */ - cmp %rax,tc_SPLower(%rdx) - ja 3f - - /* Compare against SPUpper */ - cmp %rax,tc_SPUpper(%rdx) - ja 4f - -3: - /* Call Alert() */ - push %rcx - push $(AT_DeadEnd|AN_StackProbe) - lea Alert(%rcx),%rax - call *%rax - /* Function does not return */ - - nop - -4: - /* Put the SP into the correct register after checking */ - mov %rax,%rsp - - /* Unblock signals if necessary */ - cmpb $0,tc_IDNestCnt(%rdx) - jge 5f - - /* If called from the signal handler don't do it. */ - cmp $0,AROS_CSYMNAME(supervisor) - jne 5f - call AROS_CSYMNAME(os_enable) - -5: - /* Except bit set? */ - testb $TF_EXCEPT,tc_Flags(%rdx) - je 6f - - /* Raise task exception in Disable()d state */ - push %rcx - - /* leal Disable(%rcx),%rax - call *%rax */ - lea Exception(%rcx),%rax - call *%rax - /* mov (%rsp),%rcx - lea Enable(%rcx),%rax */ - call *%rax - add $8,%rsp - - /* Restore registers and return */ -6: - pop %r15 - pop %r14 - pop %r13 - pop %r12 - pop %r11 - pop %r10 - pop %r9 - pop %r8 - pop %rbp - pop %rsi - pop %rdi - pop %rdx - pop %rcx - pop %rbx - pop %rax - ret - -- 2.11.4.GIT