# we can boot from BOOTLOADER function logic_boot_emmc_init()
# please make sure paging is disabled
# before enter into sbft_call
.text
.section REALMODE_CODE, "ax"
.code32
##########################################
#
# Save original BOOTLOADER execution environment
#
##########################################
.globl sbft_call
sbft_call:
cld
push %fs
push %es
push %ds
push %eax
push %ebp
push %edi
push %esi
push %edx
push %ecx
push %ebx
# backup BOOTLOADER stack point
movl %esp, (psi_esp)
# fill up SBFT return address(64bit address)
movl $x64_mode, (0x1F08)
movl $0, (0x1F0C)
# ebp is IRAM data base
movl 44(%esp), %ebp
# esi:edi is set to SBFT RM
Intel架构实模式,保护模式,64位模式,64位兼容模式 来回切换
最新推荐文章于 2022-12-14 21:03:41 发布