📄 clear_page.s
字号:
/* * * Optimized version of the standard clearpage() function * * Based on comments from ddd. Try not to overflow the write buffer. * * Inputs: * in0: address of page * * Output: * none * * Copyright (C) 1999-2000 Hewlett-Packard Co * Copyright (C) 1999 Stephane Eranian <eranian@hpl.hp.com> * Copyright (C) 1999-2000 David Mosberger-Tang <davidm@hpl.hp.com> */#include <asm/asmmacro.h>#include <asm/page.h> .text .psr abi64 .psr lsb .lsbGLOBAL_ENTRY(clear_page) UNW(.prologue) alloc r11=ar.pfs,1,0,0,0 UNW(.save ar.lc, r16) mov r16=ar.lc // slow UNW(.body) mov r17=PAGE_SIZE/32-1 // -1 = repeat/until ;; adds r18=16,in0 mov ar.lc=r17 ;;1: stf.spill.nta [in0]=f0,32 stf.spill.nta [r18]=f0,32 br.cloop.dptk.few 1b ;; mov ar.lc=r16 // restore lc br.ret.sptk.few rpEND(clear_page)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -