mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Added pfs0/nso building in switch_rules and added svcBreak.
This commit is contained in:
parent
9156847697
commit
74fef6895a
@ -8,6 +8,19 @@ PORTLIBS := $(PORTLIBS_PATH)/armv8-a $(PORTLIBS_PATH)/switch
|
||||
|
||||
LIBNX ?= $(DEVKITPRO)/libnx
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
%.pfs0: %.nso
|
||||
@mkdir -p exefs
|
||||
@cp -R $(BUILD_EXEFS_SRC)/* exefs/
|
||||
@cp $< exefs/main
|
||||
@build_pfs0 exefs $@
|
||||
@echo built ... $(notdir $@)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
%.nso: %.elf
|
||||
@elf2nso $< $@
|
||||
@echo built ... $(notdir $@)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
%.elf:
|
||||
@echo linking $(notdir $@)
|
||||
|
@ -19,6 +19,7 @@ static inline void* armGetTls(void) {
|
||||
}
|
||||
|
||||
Result svcConnectToNamedPort(Handle* session, const char* name);
|
||||
Result svcBreak(u32 BreakReason, u64 inval1, u64 inval2);
|
||||
Result svcReplyAndReceive(s32* index, const Handle* handles, s32 handleCount, Handle replyTarget, u64 timeout);
|
||||
Result svcManageNamedPort(Handle* portServer, const char* name, s32 maxSessions);
|
||||
|
||||
|
@ -19,6 +19,11 @@ SVC_BEGIN svcConnectToNamedPort
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcBreak
|
||||
svc 0x26
|
||||
ret
|
||||
SVC_END
|
||||
|
||||
SVC_BEGIN svcReplyAndReceive
|
||||
str x0, [sp, #-16]!
|
||||
svc 0x43
|
||||
|
Loading…
Reference in New Issue
Block a user