summaryrefslogtreecommitdiff
path: root/src/arch/ppc/lib/timebase.S
blob: 248248bd823ff720410300f7f1a26741dcda4bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Copyright 1999-2000  AG Electronics Ltd. */
/* This code is distributed without warranty under the GPL v2 (see COPYING) */

	.text
	.globl	_timebase
_timebase:
	mftbu	3
	mftb    4
	mftbu	5
	cmpw	3, 5
	bne	_timebase
	blr