crt0.s
来自「文件内包含了nuclues的内核代码和针对Power PC的编译器。需要用Vir」· S 代码 · 共 44 行
S
44 行
#
# src/crtppc/crt0.s: startup for an embedded environment: PowerPC
# ---------------------------------------------------------------
#
# Copyright 1998 Diab Data, Inc.
.file "crt0.c"
.text
.align 2
#------------------------------------------------------------- .init section --
.section .init$00,4,C
.globl __init
__init: # Entry to __init, called by
mfspr r0,8 # __init_main called above.
stwu r1,-64(r1)
stw r0,68(r1)
# Linker places .init sections from other modules, containing
# calls to initialize global objects, here.
.section .init$99,4,C
lwz r0,68(r1) # Return from __init.
addi r1,r1,64
mtspr 8,r0
blr
#------------------------------------------------------------- .fini section --
.section .fini$00,4,C
.globl __fini
__fini: # Entry to __fini, called by exit().
mfspr r0,8
stwu r1,-64(r1)
stw r0,68(r1)
# Linker places .fini sections from other modules, containing
# calls to destroy global objects, here.
.section .fini$99,4,C
lwz r0,68(r1) # Return from __fini.
addi r1,r1,64
mtspr 8,r0
blr
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?