📄 loader.s
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * loader.S (VR5500) * Kernel loader */#include <machine.h>#include <tk/asm.h>/* System common information */#define SYSCONF (SCINFO + 8) .text .balign 4 .globl start .type start, %functionstart:clear_sysconf: lui $t7, shigh(SCINFO) sw $zero, slow(SYSCONF)($t7)copy_kernel: la $t1, __dest_start la $t2, __image_start la $t3, __image_end_copy_loop: lw $t0, ($t2) addu $t2, $t2, 4 sw $t0, ($t1) addu $t1, $t1, 4 bltu $t2, $t3, _copy_loopjump_kernel: la $t1, __dest_start jr $t1 nop
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -