1// SPDX-License-Identifier: GPL-2.0 2// Copyright (C) 2005-2017 Andes Technology Corporation 3 4#include <linux/linkage.h> 5#include <asm/page.h> 6 7ENTRY(__get_timerpage) 8 sethi $r0, hi20(. + PAGE_SIZE + 8) 9 ori $r0, $r0, lo12(. + PAGE_SIZE + 4) 10 mfusr $r1, $pc 11 sub $r0, $r1, $r0 12 ret 13ENDPROC(__get_timerpage) 14 15ENTRY(__get_datapage) 16 sethi $r0, hi20(. + 2*PAGE_SIZE + 8) 17 ori $r0, $r0, lo12(. + 2*PAGE_SIZE + 4) 18 mfusr $r1, $pc 19 sub $r0, $r1, $r0 20 ret 21ENDPROC(__get_datapage) 22