Skip to content

Instantly share code, notes, and snippets.

View cpuwolf's full-sized avatar
🎯
Focusing

Wei Shuai cpuwolf

🎯
Focusing
View GitHub Profile
/*
* written by Wei Shuai <[email protected]> 2021-Oct
*/
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
typedef struct {
uint64_t b1;
uint64_t b2;
@cpuwolf
cpuwolf / switch.asm
Created June 11, 2021 06:07
IA real mode, protected mode, 64bit mode, 64bit compat mode
# 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
##########################################