2002-08-12 23:33:01 +04:00
|
|
|
/* $NetBSD: cpuswitch.S,v 1.10 2002/08/12 19:33:01 thorpej Exp $ */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
/*
|
1998-05-01 01:22:00 +04:00
|
|
|
* Copyright (c) 1994-1998 Mark Brinicombe.
|
1996-02-01 02:14:53 +03:00
|
|
|
* Copyright (c) 1994 Brini.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is derived from software written for Brini by Mark Brinicombe
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by Brini.
|
|
|
|
* 4. The name of the company nor the name of the author may be used to
|
|
|
|
* endorse or promote products derived from this software without specific
|
|
|
|
* prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY BRINI ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
|
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL BRINI OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
|
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* RiscBSD kernel project
|
|
|
|
*
|
1996-05-06 04:36:05 +04:00
|
|
|
* cpuswitch.S
|
1996-02-01 02:14:53 +03:00
|
|
|
*
|
|
|
|
* cpu switching functions
|
|
|
|
*
|
|
|
|
* Created : 15/10/94
|
|
|
|
*/
|
|
|
|
|
1998-07-06 05:56:40 +04:00
|
|
|
#include "opt_armfpe.h"
|
|
|
|
|
1996-02-02 05:34:09 +03:00
|
|
|
#include "assym.h"
|
1996-02-01 02:14:53 +03:00
|
|
|
#include <machine/param.h>
|
|
|
|
#include <machine/cpu.h>
|
1997-02-10 06:50:53 +03:00
|
|
|
#include <machine/frame.h>
|
1997-10-14 14:09:46 +04:00
|
|
|
#include <machine/asm.h>
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-06-04 01:43:06 +04:00
|
|
|
#undef IRQdisable
|
|
|
|
#undef IRQenable
|
|
|
|
|
|
|
|
/*
|
|
|
|
* New experimental definitions of IRQdisable and IRQenable
|
|
|
|
* These keep FIQ's enabled since FIQ's are special.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define IRQdisable \
|
1998-08-12 05:10:29 +04:00
|
|
|
mrs r14, cpsr_all ; \
|
|
|
|
orr r14, r14, #(I32_bit) ; \
|
|
|
|
msr cpsr_all, r14 ; \
|
1996-06-04 01:43:06 +04:00
|
|
|
|
|
|
|
#define IRQenable \
|
1998-08-12 05:10:29 +04:00
|
|
|
mrs r14, cpsr_all ; \
|
|
|
|
bic r14, r14, #(I32_bit) ; \
|
|
|
|
msr cpsr_all, r14 ; \
|
1996-06-04 01:43:06 +04:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
/*
|
1996-11-06 23:19:19 +03:00
|
|
|
* setrunqueue() and remrunqueue()
|
1996-03-14 00:39:10 +03:00
|
|
|
*
|
|
|
|
* Functions to add and remove a process for the run queue.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
.text
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Lwhichqs:
|
2000-05-27 01:19:19 +04:00
|
|
|
.word _C_LABEL(sched_whichqs)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Lqs:
|
2000-05-27 01:19:19 +04:00
|
|
|
.word _C_LABEL(sched_qs)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
/*
|
|
|
|
* On entry
|
|
|
|
* r0 = process
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(setrunqueue)
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Local register usage
|
|
|
|
* r0 = process
|
|
|
|
* r1 = queue
|
|
|
|
* r2 = &qs[queue] and temp
|
|
|
|
* r3 = temp
|
1998-04-20 21:27:30 +04:00
|
|
|
* r12 = whichqs
|
1998-04-20 03:37:22 +04:00
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
#ifdef DIAGNOSTIC
|
|
|
|
ldr r1, [r0, #(P_BACK)]
|
|
|
|
teq r1, #0x00000000
|
1996-03-08 23:03:12 +03:00
|
|
|
bne Lsetrunqueue_erg
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
ldr r1, [r0, #(P_WCHAN)]
|
|
|
|
teq r1, #0x00000000
|
1996-03-08 23:03:12 +03:00
|
|
|
bne Lsetrunqueue_erg
|
1996-02-01 02:14:53 +03:00
|
|
|
#endif
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the priority of the queue */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldrb r1, [r0, #(P_PRIORITY)]
|
|
|
|
mov r1, r1, lsr #2
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Indicate that there is a process on this queue */
|
1998-04-20 21:27:30 +04:00
|
|
|
ldr r12, Lwhichqs
|
|
|
|
ldr r2, [r12]
|
1996-02-01 02:14:53 +03:00
|
|
|
mov r3, #0x00000001
|
|
|
|
mov r3, r3, lsl r1
|
|
|
|
orr r2, r2, r3
|
1998-04-20 21:27:30 +04:00
|
|
|
str r2, [r12]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the address of the queue */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r2, Lqs
|
|
|
|
add r1, r2, r1, lsl # 3
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Hook the process in */
|
1996-02-01 02:14:53 +03:00
|
|
|
str r1, [r0, #(P_FORW)]
|
|
|
|
ldr r2, [r1, #(P_BACK)]
|
|
|
|
|
|
|
|
str r0, [r1, #(P_BACK)]
|
1996-03-08 23:03:12 +03:00
|
|
|
#ifdef DIAGNOSTIC
|
1996-02-01 02:14:53 +03:00
|
|
|
teq r2, #0x00000000
|
1996-03-08 23:03:12 +03:00
|
|
|
beq Lsetrunqueue_erg
|
|
|
|
#endif
|
1996-02-01 02:14:53 +03:00
|
|
|
str r0, [r2, #(P_FORW)]
|
|
|
|
str r2, [r0, #(P_BACK)]
|
|
|
|
|
|
|
|
mov pc, lr
|
|
|
|
|
|
|
|
#ifdef DIAGNOSTIC
|
1996-03-08 23:03:12 +03:00
|
|
|
Lsetrunqueue_erg:
|
1996-02-01 02:14:53 +03:00
|
|
|
mov r2, r1
|
|
|
|
mov r1, r0
|
|
|
|
add r0, pc, #Ltext1 - . - 8
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(printf)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
ldr r2, Lqs
|
|
|
|
ldr r1, [r2]
|
1996-03-08 23:03:12 +03:00
|
|
|
add r0, pc, #Ltext2 - . - 8
|
1999-10-26 10:53:41 +04:00
|
|
|
b _C_LABEL(panic)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Ltext1:
|
1996-03-08 23:03:12 +03:00
|
|
|
.asciz "setrunqueue : %08x %08x\n"
|
|
|
|
Ltext2:
|
|
|
|
.asciz "setrunqueue : [qs]=%08x qs=%08x\n"
|
1996-02-01 02:14:53 +03:00
|
|
|
.align 0
|
|
|
|
#endif
|
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
/*
|
|
|
|
* On entry
|
|
|
|
* r0 = process
|
|
|
|
*/
|
|
|
|
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(remrunqueue)
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Local register usage
|
|
|
|
* r0 = oldproc
|
|
|
|
* r1 = queue
|
|
|
|
* r2 = &qs[queue] and scratch
|
|
|
|
* r3 = scratch
|
1998-04-20 21:27:30 +04:00
|
|
|
* r12 = whichqs
|
1998-04-20 03:37:22 +04:00
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the priority of the queue */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldrb r1, [r0, #(P_PRIORITY)]
|
|
|
|
mov r1, r1, lsr #2
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Unhook the process */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r2, [r0, #(P_FORW)]
|
|
|
|
ldr r3, [r0, #(P_BACK)]
|
|
|
|
|
|
|
|
str r3, [r2, #(P_BACK)]
|
|
|
|
str r2, [r3, #(P_FORW)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* If the queue is now empty clear the queue not empty flag */
|
1996-02-01 02:14:53 +03:00
|
|
|
teq r2, r3
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* This could be reworked to avoid the use of r4 */
|
1998-04-20 21:27:30 +04:00
|
|
|
ldreq r12, Lwhichqs
|
|
|
|
ldreq r2, [r12]
|
1996-02-01 02:14:53 +03:00
|
|
|
moveq r3, #0x00000001
|
|
|
|
moveq r3, r3, lsl r1
|
|
|
|
biceq r2, r2, r3
|
1998-04-20 21:27:30 +04:00
|
|
|
streq r2, [r12]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Remove the back pointer for the process */
|
1996-02-01 02:14:53 +03:00
|
|
|
mov r1, #0x00000000
|
|
|
|
str r1, [r0, #(P_BACK)]
|
|
|
|
|
|
|
|
mov pc, lr
|
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* cpuswitch()
|
|
|
|
*
|
|
|
|
* preforms a process context switch.
|
|
|
|
* This function has several entry points
|
|
|
|
*/
|
|
|
|
|
1996-02-01 02:14:53 +03:00
|
|
|
Lcurproc:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(curproc)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Lcurpcb:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(curpcb)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Lwant_resched:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(want_resched)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
Lcpufuncs:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(cpufuncs)
|
1998-04-20 03:37:22 +04:00
|
|
|
|
|
|
|
.data
|
1999-10-26 10:53:41 +04:00
|
|
|
.global _C_LABEL(curpcb)
|
|
|
|
_C_LABEL(curpcb):
|
1998-04-20 03:37:22 +04:00
|
|
|
.word 0x00000000
|
|
|
|
.text
|
|
|
|
|
1998-08-16 06:17:17 +04:00
|
|
|
Lblock_userspace_access:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(block_userspace_access)
|
1996-03-14 00:39:10 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Idle loop, exercised while waiting for a process to wake up.
|
|
|
|
*/
|
2002-05-14 23:22:34 +04:00
|
|
|
/* LINTSTUB: Ignore */
|
2001-11-19 23:38:58 +03:00
|
|
|
ASENTRY_NP(idle)
|
2002-05-14 23:22:34 +04:00
|
|
|
|
|
|
|
#if defined(LOCKDEBUG)
|
|
|
|
bl _C_LABEL(sched_unlock_idle)
|
|
|
|
#endif
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Enable interrupts */
|
1996-02-01 02:14:53 +03:00
|
|
|
IRQenable
|
|
|
|
|
1997-07-31 04:03:54 +04:00
|
|
|
ldr r3, Lcpufuncs
|
|
|
|
mov r0, #0
|
1997-10-14 14:09:46 +04:00
|
|
|
add lr, pc, #Lidle_slept - . - 8
|
1997-07-31 04:03:54 +04:00
|
|
|
ldr pc, [r3, #CF_SLEEP]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
/* should also call the uvm pageidlezero stuff */
|
|
|
|
|
1997-10-14 14:09:46 +04:00
|
|
|
Lidle_slept:
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Disable interrupts while we check for an active queue */
|
1996-02-01 02:14:53 +03:00
|
|
|
IRQdisable
|
2002-05-14 23:22:34 +04:00
|
|
|
#if defined(LOCKDEBUG)
|
|
|
|
bl _C_LABEL(sched_lock_idle)
|
|
|
|
#endif
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lwhichqs
|
|
|
|
ldr r3, [r7]
|
|
|
|
teq r3, #0x00000000
|
1996-03-14 00:39:10 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
beq _ASM_LABEL(idle)
|
|
|
|
b Lidle_ret
|
1996-03-14 00:39:10 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Find a new process to run, save the current context and
|
|
|
|
* load the new context
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(cpu_switch)
|
1996-02-01 02:14:53 +03:00
|
|
|
/*
|
1996-03-14 00:39:10 +03:00
|
|
|
* Local register usage. Some of these registers are out of date.
|
1996-02-01 02:14:53 +03:00
|
|
|
* r1 = oldproc
|
1996-03-08 23:03:12 +03:00
|
|
|
* r2 = spl level
|
1996-02-01 02:14:53 +03:00
|
|
|
* r3 = whichqs
|
|
|
|
* r4 = queue
|
|
|
|
* r5 = &qs[queue]
|
|
|
|
* r6 = newproc
|
|
|
|
* r7 = scratch
|
|
|
|
*/
|
1996-03-14 00:39:10 +03:00
|
|
|
stmfd sp!, {r4-r7, lr}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Get the current process and indicate that there is no longer
|
|
|
|
* a valid process (curproc = 0)
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lcurproc
|
|
|
|
ldr r1, [r7]
|
|
|
|
mov r0, #0x00000000
|
|
|
|
str r0, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Zero the pcb */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lcurpcb
|
|
|
|
str r0, [r7]
|
|
|
|
|
2002-08-12 23:33:01 +04:00
|
|
|
/* stash the old proc while we call functions */
|
|
|
|
mov r5, r1
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
#if defined(LOCKDEBUG)
|
|
|
|
/* release the sched_lock before handling interrupts */
|
|
|
|
bl _C_LABEL(sched_unlock_idle)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Lower the spl level to spl0 and get the current spl level. */
|
2001-11-29 20:14:02 +03:00
|
|
|
#ifdef __NEWINTR
|
|
|
|
mov r0, #(IPL_NONE)
|
|
|
|
bl _C_LABEL(_spllower)
|
|
|
|
#else /* ! __NEWINTR */
|
1996-03-08 23:03:12 +03:00
|
|
|
#ifdef spl0
|
1998-01-20 04:18:18 +03:00
|
|
|
mov r0, #(_SPL_0)
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(splx)
|
1996-03-08 23:03:12 +03:00
|
|
|
#else
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(spl0)
|
2001-11-29 20:14:02 +03:00
|
|
|
#endif /* spl0 */
|
|
|
|
#endif /* __NEWINTR */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Push the old spl level onto the stack */
|
1996-02-01 02:14:53 +03:00
|
|
|
str r0, [sp, #-0x0004]!
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* First phase : find a new process */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
/* rem: r5 = old proc */
|
|
|
|
|
|
|
|
Lswitch_search:
|
1996-02-01 02:14:53 +03:00
|
|
|
IRQdisable
|
2002-05-14 23:22:34 +04:00
|
|
|
#if defined(LOCKDEBUG)
|
|
|
|
bl _C_LABEL(sched_lock_idle)
|
|
|
|
#endif
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Do we have any active queues */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lwhichqs
|
|
|
|
ldr r3, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* If not we must idle until we do. */
|
1996-02-01 02:14:53 +03:00
|
|
|
teq r3, #0x00000000
|
2001-11-19 23:38:58 +03:00
|
|
|
beq _ASM_LABEL(idle)
|
2002-05-14 23:22:34 +04:00
|
|
|
Lidle_ret:
|
|
|
|
|
2002-08-12 23:33:01 +04:00
|
|
|
/* put old proc back in r1 */
|
2002-05-14 23:22:34 +04:00
|
|
|
mov r1, r5
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r1 = old proc */
|
|
|
|
/* rem: r3 = whichqs */
|
|
|
|
/* rem: interrupts are disabled */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We have found an active queue. Currently we do not know which queue
|
|
|
|
* is active just that one of them is.
|
|
|
|
*/
|
2001-05-24 01:49:57 +04:00
|
|
|
/* this is the ffs algorithm devised by d.seal and posted to
|
|
|
|
* comp.sys.arm on 16 Feb 1994.
|
1998-04-20 03:37:22 +04:00
|
|
|
*/
|
2001-05-24 01:49:57 +04:00
|
|
|
rsb r5, r3, #0
|
|
|
|
ands r0, r3, r5
|
|
|
|
|
|
|
|
adr r5, Lcpu_switch_ffs_table
|
|
|
|
|
2001-11-12 01:07:41 +03:00
|
|
|
/* X = R0 */
|
|
|
|
orr r4, r0, r0, lsl #4 /* r4 = X * 0x11 */
|
|
|
|
orr r4, r4, r4, lsl #6 /* r4 = X * 0x451 */
|
|
|
|
rsb r4, r4, r4, lsl #16 /* r4 = X * 0x0450fbaf */
|
2001-05-24 01:49:57 +04:00
|
|
|
|
|
|
|
/* used further down, saves SA stall */
|
|
|
|
ldr r6, Lqs
|
|
|
|
|
2001-11-12 01:07:41 +03:00
|
|
|
/* now lookup in table indexed on top 6 bits of a4 */
|
2001-05-24 01:49:57 +04:00
|
|
|
ldrb r4, [ r5, r4, lsr #26 ]
|
1996-03-14 00:39:10 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r0 = bit mask of chosen queue (1 << r4) */
|
|
|
|
/* rem: r1 = old proc */
|
|
|
|
/* rem: r3 = whichqs */
|
|
|
|
/* rem: r4 = queue number */
|
|
|
|
/* rem: interrupts are disabled */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the address of the queue (&qs[queue]) */
|
2001-05-24 01:49:57 +04:00
|
|
|
add r5, r6, r4, lsl #3
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Get the process from the queue and place the next process in
|
|
|
|
* the queue at the head. This basically unlinks the process at
|
|
|
|
* the head of the queue.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r6, [r5, #(P_FORW)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r6 = new process */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, [r6, #(P_FORW)]
|
|
|
|
str r7, [r5, #(P_FORW)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Test to see if the queue is now empty. If the head of the queue
|
|
|
|
* points to the queue itself then there are no more processes in
|
|
|
|
* the queue. We can therefore clear the queue not empty flag held
|
|
|
|
* in r3.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
teq r5, r7
|
|
|
|
biceq r3, r3, r0
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r0 = bit mask of chosen queue (1 << r4) - NOT NEEDED AN MORE */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Fix the back pointer for the process now at the head of the queue. */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r0, [r6, #(P_BACK)]
|
|
|
|
str r0, [r7, #(P_BACK)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Update the RAM copy of the queue not empty flags word. */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lwhichqs
|
|
|
|
str r3, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r1 = old proc */
|
|
|
|
/* rem: r3 = whichqs - NOT NEEDED ANY MORE */
|
|
|
|
/* rem: r4 = queue number - NOT NEEDED ANY MORE */
|
|
|
|
/* rem: r6 = new process */
|
|
|
|
/* rem: interrupts are disabled */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Clear the want_resched flag */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lwant_resched
|
2001-11-19 23:38:58 +03:00
|
|
|
mov r0, #0x00000000
|
1996-02-01 02:14:53 +03:00
|
|
|
str r0, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Clear the back pointer of the process we have removed from
|
|
|
|
* the head of the queue. The new process is isolated now.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
str r0, [r6, #(P_BACK)]
|
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
#if defined(LOCKDEBUG)
|
|
|
|
/*
|
|
|
|
* unlock the sched_lock, but leave interrupts off, for now.
|
|
|
|
*/
|
|
|
|
mov r7, r1
|
|
|
|
bl _C_LABEL(sched_unlock_idle)
|
|
|
|
mov r1, r7
|
|
|
|
#endif
|
|
|
|
|
2000-05-31 09:06:43 +04:00
|
|
|
/* p->p_cpu initialized in fork1() for single-processor */
|
|
|
|
|
2000-05-26 04:36:42 +04:00
|
|
|
/* Process is now on a processor. */
|
|
|
|
mov r0, #SONPROC /* p->p_stat = SONPROC */
|
|
|
|
strb r0, [r6, #(P_STAT)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* We have a new curproc now so make a note it */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lcurproc
|
|
|
|
str r6, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Hook in a new pcb */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r7, Lcurpcb
|
|
|
|
ldr r0, [r6, #(P_ADDR)]
|
|
|
|
str r0, [r7]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* At this point we can allow IRQ's again. */
|
1996-02-01 02:14:53 +03:00
|
|
|
IRQenable
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r1 = old proc */
|
|
|
|
/* rem: r6 = new process */
|
2001-11-19 23:38:58 +03:00
|
|
|
/* rem: interrupts are enabled */
|
1998-04-20 03:37:22 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If the new process is the same as the process that called
|
|
|
|
* cpu_switch() then we do not need to save and restore any
|
|
|
|
* contexts. This means we can make a quick exit.
|
|
|
|
* The test is simple if curproc on entry (now in r1) is the
|
|
|
|
* same as the proc removed from the queue we can jump to the exit.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
teq r1, r6
|
|
|
|
beq switch_return
|
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/* Remember the old process in r0 */
|
|
|
|
mov r0, r1
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* If the curproc on entry to cpu_switch was zero then the
|
|
|
|
* process that called it was exiting. This means that we do
|
|
|
|
* not need to save the current context. Instead we can jump
|
|
|
|
* straight to restoring the context for the new process.
|
|
|
|
*/
|
2002-08-06 23:20:29 +04:00
|
|
|
teq r0, #0x00000000
|
1996-02-01 02:14:53 +03:00
|
|
|
beq switch_exited
|
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/* rem: r0 = old proc */
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r6 = new process */
|
2001-11-19 23:38:58 +03:00
|
|
|
/* rem: interrupts are enabled */
|
1996-03-14 00:39:10 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Stage two : Save old context */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the user structure for the old process. */
|
2002-08-06 23:20:29 +04:00
|
|
|
ldr r1, [r0, #(P_ADDR)]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Save all the registers in the old process's pcb */
|
1996-03-14 00:39:10 +03:00
|
|
|
add r7, r1, #(PCB_R8)
|
|
|
|
stmia r7, {r8-r13}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* This can be optimised... We know we want to go from SVC32
|
|
|
|
* mode to UND32 mode
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
mrs r3, cpsr_all
|
|
|
|
bic r2, r3, #(PSR_MODE)
|
1997-10-14 14:09:46 +04:00
|
|
|
orr r2, r2, #(PSR_UND32_MODE | I32_bit)
|
1996-02-01 02:14:53 +03:00
|
|
|
msr cpsr_all, r2
|
|
|
|
|
|
|
|
str sp, [r1, #(PCB_UND_SP)]
|
|
|
|
|
|
|
|
msr cpsr_all, r3 /* Restore the old mode */
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r0 = old proc */
|
2001-11-19 23:38:58 +03:00
|
|
|
/* rem: r1 = old pcb */
|
1998-04-20 03:37:22 +04:00
|
|
|
/* rem: r6 = new process */
|
2001-11-19 23:38:58 +03:00
|
|
|
/* rem: interrupts are enabled */
|
1996-03-14 00:39:10 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* What else needs to be saved Only FPA stuff when that is supported */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/* r1 now free! */
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Third phase : restore saved context */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/* rem: r0 = old proc */
|
|
|
|
/* rem: r6 = new process */
|
|
|
|
/* rem: interrupts are enabled */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Don't allow user space access between the purge and the switch.
|
|
|
|
*/
|
1998-08-16 06:17:17 +04:00
|
|
|
ldr r3, Lblock_userspace_access
|
2002-08-06 23:20:29 +04:00
|
|
|
mov r1, #0x00000001
|
|
|
|
mov r2, #0x00000000
|
|
|
|
str r1, [r3]
|
1998-08-16 06:17:17 +04:00
|
|
|
|
1996-10-16 02:04:19 +04:00
|
|
|
stmfd sp!, {r0-r3}
|
2002-08-06 23:20:29 +04:00
|
|
|
ldr r1, Lcpufuncs
|
1997-02-04 10:12:30 +03:00
|
|
|
add lr, pc, #Lcs_cache_purged - . - 8
|
2002-08-06 23:20:29 +04:00
|
|
|
ldr pc, [r1, #CF_IDCACHE_WBINV_ALL]
|
1997-02-04 10:12:30 +03:00
|
|
|
|
|
|
|
Lcs_cache_purged:
|
1996-10-16 02:04:19 +04:00
|
|
|
ldmfd sp!, {r0-r3}
|
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
Lcs_cache_purge_skipped:
|
1998-08-12 05:10:29 +04:00
|
|
|
/* At this point we need to kill IRQ's again. */
|
|
|
|
IRQdisable
|
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/*
|
|
|
|
* Interrupts are disabled so we can allow user space accesses again
|
1998-08-16 06:17:17 +04:00
|
|
|
* as none will occur until interrupts are re-enabled after the
|
|
|
|
* switch.
|
|
|
|
*/
|
|
|
|
str r2, [r3]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the user structure for the new process in r1 */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r1, [r6, #(P_ADDR)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the pagedir physical address for the process. */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r0, [r1, #(PCB_PAGEDIR)]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Switch the memory to the new process */
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r3, Lcpufuncs
|
|
|
|
add lr, pc, #Lcs_context_switched - . - 8
|
|
|
|
ldr pc, [r3, #CF_CONTEXT_SWITCH]
|
|
|
|
|
|
|
|
Lcs_context_switched:
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* This can be optimised... We know we want to go from SVC32
|
|
|
|
* mode to UND32 mode
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
mrs r3, cpsr_all
|
|
|
|
bic r2, r3, #(PSR_MODE)
|
|
|
|
orr r2, r2, #(PSR_UND32_MODE)
|
|
|
|
msr cpsr_all, r2
|
|
|
|
|
|
|
|
ldr sp, [r1, #(PCB_UND_SP)]
|
|
|
|
|
|
|
|
msr cpsr_all, r3 /* Restore the old mode */
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Restore all the save registers */
|
1996-02-01 02:14:53 +03:00
|
|
|
add r7, r1, #PCB_R8
|
1996-03-14 00:39:10 +03:00
|
|
|
ldmia r7, {r8-r13}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
#ifdef ARMFPE
|
|
|
|
add r0, r1, #(USER_SIZE) & 0x00ff
|
|
|
|
add r0, r0, #(USER_SIZE) & 0xff00
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(arm_fpe_core_changecontext)
|
1996-02-01 02:14:53 +03:00
|
|
|
#endif
|
|
|
|
|
1998-08-12 05:10:29 +04:00
|
|
|
/* We can enable interrupts again */
|
|
|
|
IRQenable
|
|
|
|
|
1996-02-01 02:14:53 +03:00
|
|
|
switch_return:
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Get the spl level from the stack and update the current spl level */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r0, [sp], #0x0004
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(splx)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* cpu_switch returns the proc it switched to. */
|
1996-02-01 02:14:53 +03:00
|
|
|
mov r0, r6
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* Pull the registers that got pushed when either savectx() or
|
|
|
|
* cpu_switch() was called and return.
|
|
|
|
*/
|
1996-03-14 00:39:10 +03:00
|
|
|
ldmfd sp!, {r4-r7, pc}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
switch_exited:
|
|
|
|
/*
|
|
|
|
* We skip the cache purge because switch_exit() already did
|
|
|
|
* it. Load up registers the way Lcs_cache_purge_skipped
|
|
|
|
* expects. Userspace access already blocked in switch_exit().
|
|
|
|
*/
|
|
|
|
ldr r3, Lblock_userspace_access
|
|
|
|
mov r2, #0x00000000
|
|
|
|
b Lcs_cache_purge_skipped
|
|
|
|
|
1996-02-01 02:14:53 +03:00
|
|
|
Lproc0:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(proc0)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
|
|
|
Lkernel_map:
|
1999-10-26 10:53:41 +04:00
|
|
|
.word _C_LABEL(kernel_map)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
/*
|
2002-08-06 21:44:35 +04:00
|
|
|
* void switch_exit(struct proc *p, struct proc *p0);
|
2002-05-14 23:22:34 +04:00
|
|
|
* Switch to proc0's saved context and deallocate the address space and kernel
|
|
|
|
* stack for p. Then jump into cpu_switch(), as if we were in proc0 all along.
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-08-06 21:44:35 +04:00
|
|
|
/* LINTSTUB: Func: void switch_exit(struct proc *p, struct proc *p0) */
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(switch_exit)
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* r0 = proc
|
|
|
|
* r1 = proc0
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
mov r3, r0
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* In case we fault */
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r0, Lcurproc
|
2001-11-19 23:38:58 +03:00
|
|
|
mov r2, #0x00000000
|
1997-02-04 10:12:30 +03:00
|
|
|
str r2, [r0]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
/* ldr r0, Lcurpcb
|
|
|
|
str r2, [r0]*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-08-06 23:20:29 +04:00
|
|
|
/*
|
|
|
|
* Don't allow user space access between the purge and the switch.
|
|
|
|
*/
|
|
|
|
ldr r0, Lblock_userspace_access
|
|
|
|
mov r2, #0x00000001
|
|
|
|
str r2, [r0]
|
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Switch to proc0 context */
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-10-16 02:04:19 +04:00
|
|
|
stmfd sp!, {r0-r3}
|
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r0, Lcpufuncs
|
|
|
|
add lr, pc, #Lse_cache_purged - . - 8
|
2002-01-25 22:19:22 +03:00
|
|
|
ldr pc, [r0, #CF_IDCACHE_WBINV_ALL]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
Lse_cache_purged:
|
|
|
|
ldmfd sp!, {r0-r3}
|
1996-10-16 02:04:19 +04:00
|
|
|
|
1998-08-12 05:10:29 +04:00
|
|
|
IRQdisable
|
|
|
|
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r2, [r1, #(P_ADDR)]
|
|
|
|
ldr r0, [r2, #(PCB_PAGEDIR)]
|
1996-10-16 02:04:19 +04:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Switch the memory to the new process */
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r4, Lcpufuncs
|
|
|
|
add lr, pc, #Lse_context_switched - . - 8
|
|
|
|
ldr pc, [r4, #CF_CONTEXT_SWITCH]
|
|
|
|
|
|
|
|
Lse_context_switched:
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Restore all the save registers */
|
1996-02-01 02:14:53 +03:00
|
|
|
add r7, r2, #PCB_R8
|
1996-03-14 00:39:10 +03:00
|
|
|
ldmia r7, {r8-r13}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* This is not really needed ! */
|
|
|
|
/* Yes it is for the su and fu routines */
|
1997-02-04 10:12:30 +03:00
|
|
|
ldr r0, Lcurpcb
|
|
|
|
str r2, [r0]
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-08-12 05:10:29 +04:00
|
|
|
IRQenable
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-09-10 06:16:28 +04:00
|
|
|
/* str r3, [sp, #-0x0004]!*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
1998-09-09 04:07:48 +04:00
|
|
|
* Schedule the vmspace and stack to be freed.
|
1998-04-20 03:37:22 +04:00
|
|
|
*/
|
1998-09-09 04:07:48 +04:00
|
|
|
mov r0, r3 /* exit2(p) */
|
1999-10-26 10:53:41 +04:00
|
|
|
bl _C_LABEL(exit2)
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Paranoia */
|
1996-02-01 02:14:53 +03:00
|
|
|
ldr r1, Lcurproc
|
2001-11-19 23:38:58 +03:00
|
|
|
mov r0, #0x00000000
|
1996-02-01 02:14:53 +03:00
|
|
|
str r0, [r1]
|
|
|
|
|
2002-08-06 21:44:35 +04:00
|
|
|
mov r5, #0x00000000 /* r5 = old proc = NULL */
|
2002-05-14 23:22:34 +04:00
|
|
|
b Lswitch_search
|
1996-02-01 02:14:53 +03:00
|
|
|
|
2002-05-14 23:22:34 +04:00
|
|
|
/* LINTSTUB: Func: void savectx(struct pcb *pcb) */
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(savectx)
|
1998-04-20 03:37:22 +04:00
|
|
|
/*
|
|
|
|
* r0 = pcb
|
|
|
|
*/
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Push registers.*/
|
1996-03-14 00:39:10 +03:00
|
|
|
stmfd sp!, {r4-r7, lr}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Store all the registers in the process's pcb */
|
1996-03-14 00:39:10 +03:00
|
|
|
add r2, r0, #(PCB_R8)
|
|
|
|
stmia r2, {r8-r13}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Pull the regs of the stack */
|
1996-03-14 00:39:10 +03:00
|
|
|
ldmfd sp!, {r4-r7, pc}
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1997-10-14 14:09:46 +04:00
|
|
|
ENTRY(proc_trampoline)
|
1996-03-14 00:39:10 +03:00
|
|
|
add lr, pc, #(trampoline_return - . - 8)
|
|
|
|
mov r0, r5
|
|
|
|
mov r1, sp
|
|
|
|
mov pc, r4
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
trampoline_return:
|
1998-04-20 03:37:22 +04:00
|
|
|
/* Kill irq's */
|
1996-03-14 00:39:10 +03:00
|
|
|
mrs r0, cpsr_all
|
|
|
|
orr r0, r0, #(I32_bit)
|
|
|
|
msr cpsr_all, r0
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
PULLFRAME
|
1996-02-01 02:14:53 +03:00
|
|
|
|
1996-03-14 00:39:10 +03:00
|
|
|
movs pc, lr /* Exit */
|
1996-08-22 00:29:19 +04:00
|
|
|
|
2001-09-16 21:38:08 +04:00
|
|
|
.type Lcpu_switch_ffs_table, _ASM_TYPE_OBJECT;
|
2001-05-24 01:49:57 +04:00
|
|
|
Lcpu_switch_ffs_table:
|
|
|
|
/* same as ffs table but all nums are -1 from that */
|
|
|
|
/* 0 1 2 3 4 5 6 7 */
|
|
|
|
.byte 0, 0, 1, 12, 2, 6, 0, 13 /* 0- 7 */
|
|
|
|
.byte 3, 0, 7, 0, 0, 0, 0, 14 /* 8-15 */
|
|
|
|
.byte 10, 4, 0, 0, 8, 0, 0, 25 /* 16-23 */
|
|
|
|
.byte 0, 0, 0, 0, 0, 21, 27, 15 /* 24-31 */
|
|
|
|
.byte 31, 11, 5, 0, 0, 0, 0, 0 /* 32-39 */
|
|
|
|
.byte 9, 0, 0, 24, 0, 0, 20, 26 /* 40-47 */
|
|
|
|
.byte 30, 0, 0, 0, 0, 23, 0, 19 /* 48-55 */
|
|
|
|
.byte 29, 0, 22, 18, 28, 17, 16, 0 /* 56-63 */
|
|
|
|
|
1997-02-10 06:57:42 +03:00
|
|
|
/* End of cpuswitch.S */
|