; Copyright 2003 Tematic Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;

; little assembler stub to buffer service routine

	AREA	|C$$data|, DATA

        EXPORT  BuffManService
BuffManService
        DCD     0

        EXPORT  BuffManWS
BuffManWS
        DCD     0

	AREA	|C$$code|, CODE, READONLY

	EXPORT	call_buffermanager
call_buffermanager
	STMFD	R13!,{R4,R5,LR}
	MOV	R4,R0
	MOV	R5,R1
	MOV	R12,R2
	LDMIA	R4!,{R0-R3}
	MOV	LR,PC
	MOV	PC,R5
	STMDB	R4,{R2-R3}
	MRS     R0,CPSR
	LDMFD	R13!,{R4,R5,PC}

        END