Skip to content

head.s的bss段的初始化not_relocated #1

@LiuLingXi2

Description

@LiuLingXi2

您好,想问一下,在Linux 2.6.30.4版本中的arch/arm/boot/head.S文件起始部分就有一个not_relocated标签,该标签中有取得__bss_start地址。按照链接脚本的规则,__bss_start是一个虚拟地址,可是在文件中此时还未开启任何虚拟地址转换,但已经使用str r0, [__bss_start], #4直接以__bss_start为物理内存地址的初始化为0,百思不得其解,望解惑,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions