Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Config/DualBoot.Sm8250.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
StackBase=0x9FC00000
StackSize=0x00300000
14 changes: 14 additions & 0 deletions ShellCode/ShellCode.Pipa.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.include "DummyHead.S"

/* Shell Code for Xiaomi Pad 6 (Pipa) */
_ShellCodeStart:
movz x4, #0xe004
movk x4, #0xf96, lsl #16 // Store 0xf96E004 to x4, which is address of GPIO 110.
ldr w6, [x4] // Get status value from address stored in x4 and store it to w6.
nop
nop
and w6, w6, #1 // w6 & 1 and stored in w6.
cbnz w6, _UEFI // Compare w6 with 0, if w6 == 0 goto _UEFI, else execute next instruction(jmp Linux).

.include "CommonTail.S"
/* Do not remove the last line */
Loading