Skip to content

Commit 540cb19

Browse files
committed
did you miss me baby
1 parent e3459d0 commit 540cb19

6 files changed

Lines changed: 719 additions & 486 deletions

File tree

config.json

Lines changed: 199 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,204 @@
11
{
2-
"name": "hid",
3-
"title_id": "0x0100000000000013",
4-
"title_id_range_min": "0x0100000000000013",
5-
"title_id_range_max": "0x0100000000000013",
6-
"main_thread_stack_size": "0x00003000",
7-
"main_thread_priority": 18,
8-
"default_cpu_id": 3,
9-
"version": "0x38000400",
10-
"is_retail": true,
11-
"pool_partition": 2,
12-
"is_64_bit": true,
13-
"address_space_type": 3,
14-
"filesystem_access": {
15-
"permissions": "0x0000000000100000"
2+
"name": "hid",
3+
"title_id": "0x0100000000000013",
4+
"title_id_range_min": "0x0100000000000013",
5+
"title_id_range_max": "0x0100000000000013",
6+
"main_thread_stack_size": "0x00003000",
7+
"main_thread_priority": 18,
8+
"default_cpu_id": 3,
9+
"version": "0x38000400",
10+
"is_retail": true,
11+
"pool_partition": 2,
12+
"is_64_bit": true,
13+
"address_space_type": 3,
14+
"filesystem_access": {
15+
"permissions": "0x0000000000100000"
1616
},
17-
"service_access": ["erpt:c", "fatal:u", "ins:s", "psc:m", "bpc", "fsp-srv", "i2c", "uart", "gpio", "pinmux", "btdrv", "btm", "btm:sys", "ovln:snd", "usb:hs", "usb:qdb", "psm", "rgltr", "sasbus", "set:cal", "set:fd", "set:sys"],
18-
"service_host": ["hid", "hid:dbg", "hid:hdr", "hid:sys", "hid:tmp", "hidbus", "irs", "irs:sys", "xcd:sys"],
19-
"kernel_capabilities": [{
20-
"type": "kernel_flags",
21-
"value": {
22-
"highest_thread_priority": 63,
23-
"lowest_thread_priority": 12,
24-
"lowest_cpu_id": 3,
25-
"highest_cpu_id": 3
17+
"service_access": [
18+
"erpt:c",
19+
"fatal:u",
20+
"ins:s",
21+
"psc:m",
22+
"bpc",
23+
"fsp-srv",
24+
"i2c",
25+
"uart",
26+
"gpio",
27+
"pinmux",
28+
"btdrv",
29+
"btm",
30+
"btm:sys",
31+
"ovln:snd",
32+
"usb:hs",
33+
"usb:qdb",
34+
"psm",
35+
"rgltr",
36+
"sasbus",
37+
"set:cal",
38+
"set:fd",
39+
"set:sys"
40+
],
41+
"service_host": [
42+
"hid",
43+
"hid:dbg",
44+
"hid:hdr",
45+
"hid:sys",
46+
"hid:tmp",
47+
"hidbus",
48+
"irs",
49+
"irs:sys",
50+
"xcd:sys"
51+
],
52+
"kernel_capabilities": [
53+
{
54+
"type": "kernel_flags",
55+
"value": {
56+
"highest_thread_priority": 63,
57+
"lowest_thread_priority": 12,
58+
"lowest_cpu_id": 3,
59+
"highest_cpu_id": 3
2660
}
27-
}, {
28-
"type": "syscalls",
29-
"value": {
30-
"svcUnknown": "0x00",
31-
"svcSetHeapSize": "0x01",
32-
"svcSetMemoryPermission": "0x02",
33-
"svcSetMemoryAttribute": "0x03",
34-
"svcMapMemory": "0x04",
35-
"svcUnmapMemory": "0x05",
36-
"svcQueryMemory": "0x06",
37-
"svcExitProcess": "0x07",
38-
"svcCreateThread": "0x08",
39-
"svcStartThread": "0x09",
40-
"svcExitThread": "0x0a",
41-
"svcSleepThread": "0x0b",
42-
"svcGetThreadPriority": "0x0c",
43-
"svcSetThreadPriority": "0x0d",
44-
"svcGetThreadCoreMask": "0x0e",
45-
"svcSetThreadCoreMask": "0x0f",
46-
"svcGetCurrentProcessorNumber": "0x10",
47-
"svcSignalEvent": "0x11",
48-
"svcClearEvent": "0x12",
49-
"svcMapSharedMemory": "0x13",
50-
"svcUnmapSharedMemory": "0x14",
51-
"svcCreateTransferMemory": "0x15",
52-
"svcCloseHandle": "0x16",
53-
"svcResetSignal": "0x17",
54-
"svcWaitSynchronization": "0x18",
55-
"svcCancelSynchronization": "0x19",
56-
"svcArbitrateLock": "0x1a",
57-
"svcArbitrateUnlock": "0x1b",
58-
"svcWaitProcessWideKeyAtomic": "0x1c",
59-
"svcSignalProcessWideKey": "0x1d",
60-
"svcGetSystemTick": "0x1e",
61-
"svcConnectToNamedPort": "0x1f",
62-
"svcSendSyncRequestLight": "0x20",
63-
"svcSendSyncRequest": "0x21",
64-
"svcSendSyncRequestWithUserBuffer": "0x22",
65-
"svcSendAsyncRequestWithUserBuffer": "0x23",
66-
"svcGetProcessId": "0x24",
67-
"svcGetThreadId": "0x25",
68-
"svcBreak": "0x26",
69-
"svcOutputDebugString": "0x27",
70-
"svcReturnFromException": "0x28",
71-
"svcGetInfo": "0x29",
72-
"svcFlushEntireDataCache": "0x2a",
73-
"svcFlushDataCache": "0x2b",
74-
"svcMapPhysicalMemory": "0x2c",
75-
"svcUnmapPhysicalMemory": "0x2d",
76-
"svcGetFutureThreadInfo": "0x2e",
77-
"svcGetLastThreadInfo": "0x2f",
78-
"svcGetResourceLimitLimitValue": "0x30",
79-
"svcGetResourceLimitCurrentValue": "0x31",
80-
"svcSetThreadActivity": "0x32",
81-
"svcGetThreadContext3": "0x33",
82-
"svcWaitForAddress": "0x34",
83-
"svcSignalToAddress": "0x35",
84-
"svcUnknown": "0x36",
85-
"svcUnknown": "0x37",
86-
"svcUnknown": "0x38",
87-
"svcUnknown": "0x39",
88-
"svcUnknown": "0x3a",
89-
"svcUnknown": "0x3b",
90-
"svcDumpInfo": "0x3c",
91-
"svcDumpInfoNew": "0x3d",
92-
"svcUnknown": "0x3e",
93-
"svcUnknown": "0x3f",
94-
"svcCreateSession": "0x40",
95-
"svcAcceptSession": "0x41",
96-
"svcReplyAndReceiveLight": "0x42",
97-
"svcReplyAndReceive": "0x43",
98-
"svcReplyAndReceiveWithUserBuffer": "0x44",
99-
"svcCreateEvent": "0x45",
100-
"svcUnknown": "0x46",
101-
"svcUnknown": "0x47",
102-
"svcMapPhysicalMemoryUnsafe": "0x48",
103-
"svcUnmapPhysicalMemoryUnsafe": "0x49",
104-
"svcSetUnsafeLimit": "0x4a",
105-
"svcCreateCodeMemory": "0x4b",
106-
"svcControlCodeMemory": "0x4c",
107-
"svcSleepSystem": "0x4d",
108-
"svcReadWriteRegister": "0x4e",
109-
"svcSetProcessActivity": "0x4f",
110-
"svcCreateSharedMemory": "0x50",
111-
"svcMapTransferMemory": "0x51",
112-
"svcUnmapTransferMemory": "0x52",
113-
"svcCreateInterruptEvent": "0x53",
114-
"svcQueryPhysicalAddress": "0x54",
115-
"svcQueryIoMapping": "0x55",
116-
"svcCreateDeviceAddressSpace": "0x56",
117-
"svcAttachDeviceAddressSpace": "0x57",
118-
"svcDetachDeviceAddressSpace": "0x58",
119-
"svcMapDeviceAddressSpaceByForce": "0x59",
120-
"svcMapDeviceAddressSpaceAligned": "0x5a",
121-
"svcMapDeviceAddressSpace": "0x5b",
122-
"svcUnmapDeviceAddressSpace": "0x5c",
123-
"svcInvalidateProcessDataCache": "0x5d",
124-
"svcStoreProcessDataCache": "0x5e",
125-
"svcFlushProcessDataCache": "0x5f",
126-
"svcDebugActiveProcess": "0x60",
127-
"svcBreakDebugProcess": "0x61",
128-
"svcTerminateDebugProcess": "0x62",
129-
"svcGetDebugEvent": "0x63",
130-
"svcContinueDebugEvent": "0x64",
131-
"svcGetProcessList": "0x65",
132-
"svcGetThreadList": "0x66",
133-
"svcGetDebugThreadContext": "0x67",
134-
"svcSetDebugThreadContext": "0x68",
135-
"svcQueryDebugProcessMemory": "0x69",
136-
"svcReadDebugProcessMemory": "0x6a",
137-
"svcWriteDebugProcessMemory": "0x6b",
138-
"svcSetHardwareBreakPoint": "0x6c",
139-
"svcGetDebugThreadParam": "0x6d",
140-
"svcUnknown": "0x6e",
141-
"svcGetSystemInfo": "0x6f",
142-
"svcCreatePort": "0x70",
143-
"svcManageNamedPort": "0x71",
144-
"svcConnectToPort": "0x72",
145-
"svcSetProcessMemoryPermission": "0x73",
146-
"svcMapProcessMemory": "0x74",
147-
"svcUnmapProcessMemory": "0x75",
148-
"svcQueryProcessMemory": "0x76",
149-
"svcMapProcessCodeMemory": "0x77",
150-
"svcUnmapProcessCodeMemory": "0x78",
151-
"svcCreateProcess": "0x79",
152-
"svcStartProcess": "0x7a",
153-
"svcTerminateProcess": "0x7b",
154-
"svcGetProcessInfo": "0x7c",
155-
"svcCreateResourceLimit": "0x7d",
156-
"svcSetResourceLimitLimitValue": "0x7e",
157-
"svcCallSecureMonitor": "0x7f"
61+
},
62+
{
63+
"type": "syscalls",
64+
"value": {
65+
"svcUnknown": "0x00",
66+
"svcSetHeapSize": "0x01",
67+
"svcSetMemoryPermission": "0x02",
68+
"svcSetMemoryAttribute": "0x03",
69+
"svcMapMemory": "0x04",
70+
"svcUnmapMemory": "0x05",
71+
"svcQueryMemory": "0x06",
72+
"svcExitProcess": "0x07",
73+
"svcCreateThread": "0x08",
74+
"svcStartThread": "0x09",
75+
"svcExitThread": "0x0a",
76+
"svcSleepThread": "0x0b",
77+
"svcGetThreadPriority": "0x0c",
78+
"svcSetThreadPriority": "0x0d",
79+
"svcGetThreadCoreMask": "0x0e",
80+
"svcSetThreadCoreMask": "0x0f",
81+
"svcGetCurrentProcessorNumber": "0x10",
82+
"svcSignalEvent": "0x11",
83+
"svcClearEvent": "0x12",
84+
"svcMapSharedMemory": "0x13",
85+
"svcUnmapSharedMemory": "0x14",
86+
"svcCreateTransferMemory": "0x15",
87+
"svcCloseHandle": "0x16",
88+
"svcResetSignal": "0x17",
89+
"svcWaitSynchronization": "0x18",
90+
"svcCancelSynchronization": "0x19",
91+
"svcArbitrateLock": "0x1a",
92+
"svcArbitrateUnlock": "0x1b",
93+
"svcWaitProcessWideKeyAtomic": "0x1c",
94+
"svcSignalProcessWideKey": "0x1d",
95+
"svcGetSystemTick": "0x1e",
96+
"svcConnectToNamedPort": "0x1f",
97+
"svcSendSyncRequestLight": "0x20",
98+
"svcSendSyncRequest": "0x21",
99+
"svcSendSyncRequestWithUserBuffer": "0x22",
100+
"svcSendAsyncRequestWithUserBuffer": "0x23",
101+
"svcGetProcessId": "0x24",
102+
"svcGetThreadId": "0x25",
103+
"svcBreak": "0x26",
104+
"svcOutputDebugString": "0x27",
105+
"svcReturnFromException": "0x28",
106+
"svcGetInfo": "0x29",
107+
"svcFlushEntireDataCache": "0x2a",
108+
"svcFlushDataCache": "0x2b",
109+
"svcMapPhysicalMemory": "0x2c",
110+
"svcUnmapPhysicalMemory": "0x2d",
111+
"svcGetFutureThreadInfo": "0x2e",
112+
"svcGetLastThreadInfo": "0x2f",
113+
"svcGetResourceLimitLimitValue": "0x30",
114+
"svcGetResourceLimitCurrentValue": "0x31",
115+
"svcSetThreadActivity": "0x32",
116+
"svcGetThreadContext3": "0x33",
117+
"svcWaitForAddress": "0x34",
118+
"svcSignalToAddress": "0x35",
119+
"svcUnknown": "0x36",
120+
"svcUnknown": "0x37",
121+
"svcUnknown": "0x38",
122+
"svcUnknown": "0x39",
123+
"svcUnknown": "0x3a",
124+
"svcUnknown": "0x3b",
125+
"svcDumpInfo": "0x3c",
126+
"svcDumpInfoNew": "0x3d",
127+
"svcUnknown": "0x3e",
128+
"svcUnknown": "0x3f",
129+
"svcCreateSession": "0x40",
130+
"svcAcceptSession": "0x41",
131+
"svcReplyAndReceiveLight": "0x42",
132+
"svcReplyAndReceive": "0x43",
133+
"svcReplyAndReceiveWithUserBuffer": "0x44",
134+
"svcCreateEvent": "0x45",
135+
"svcUnknown": "0x46",
136+
"svcUnknown": "0x47",
137+
"svcMapPhysicalMemoryUnsafe": "0x48",
138+
"svcUnmapPhysicalMemoryUnsafe": "0x49",
139+
"svcSetUnsafeLimit": "0x4a",
140+
"svcCreateCodeMemory": "0x4b",
141+
"svcControlCodeMemory": "0x4c",
142+
"svcSleepSystem": "0x4d",
143+
"svcReadWriteRegister": "0x4e",
144+
"svcSetProcessActivity": "0x4f",
145+
"svcCreateSharedMemory": "0x50",
146+
"svcMapTransferMemory": "0x51",
147+
"svcUnmapTransferMemory": "0x52",
148+
"svcCreateInterruptEvent": "0x53",
149+
"svcQueryPhysicalAddress": "0x54",
150+
"svcQueryIoMapping": "0x55",
151+
"svcCreateDeviceAddressSpace": "0x56",
152+
"svcAttachDeviceAddressSpace": "0x57",
153+
"svcDetachDeviceAddressSpace": "0x58",
154+
"svcMapDeviceAddressSpaceByForce": "0x59",
155+
"svcMapDeviceAddressSpaceAligned": "0x5a",
156+
"svcMapDeviceAddressSpace": "0x5b",
157+
"svcUnmapDeviceAddressSpace": "0x5c",
158+
"svcInvalidateProcessDataCache": "0x5d",
159+
"svcStoreProcessDataCache": "0x5e",
160+
"svcFlushProcessDataCache": "0x5f",
161+
"svcDebugActiveProcess": "0x60",
162+
"svcBreakDebugProcess": "0x61",
163+
"svcTerminateDebugProcess": "0x62",
164+
"svcGetDebugEvent": "0x63",
165+
"svcContinueDebugEvent": "0x64",
166+
"svcGetProcessList": "0x65",
167+
"svcGetThreadList": "0x66",
168+
"svcGetDebugThreadContext": "0x67",
169+
"svcSetDebugThreadContext": "0x68",
170+
"svcQueryDebugProcessMemory": "0x69",
171+
"svcReadDebugProcessMemory": "0x6a",
172+
"svcWriteDebugProcessMemory": "0x6b",
173+
"svcSetHardwareBreakPoint": "0x6c",
174+
"svcGetDebugThreadParam": "0x6d",
175+
"svcUnknown": "0x6e",
176+
"svcGetSystemInfo": "0x6f",
177+
"svcCreatePort": "0x70",
178+
"svcManageNamedPort": "0x71",
179+
"svcConnectToPort": "0x72",
180+
"svcSetProcessMemoryPermission": "0x73",
181+
"svcMapProcessMemory": "0x74",
182+
"svcUnmapProcessMemory": "0x75",
183+
"svcQueryProcessMemory": "0x76",
184+
"svcMapProcessCodeMemory": "0x77",
185+
"svcUnmapProcessCodeMemory": "0x78",
186+
"svcCreateProcess": "0x79",
187+
"svcStartProcess": "0x7a",
188+
"svcTerminateProcess": "0x7b",
189+
"svcGetProcessInfo": "0x7c",
190+
"svcCreateResourceLimit": "0x7d",
191+
"svcSetResourceLimitLimitValue": "0x7e",
192+
"svcCallSecureMonitor": "0x7f"
158193
}
159-
}, {
160-
"type": "min_kernel_version",
161-
"value": "0x0091"
162-
}, {
163-
"type": "handle_table_size",
164-
"value": 512
165-
}]
194+
},
195+
{
196+
"type": "min_kernel_version",
197+
"value": "0x0091"
198+
},
199+
{
200+
"type": "handle_table_size",
201+
"value": 512
202+
}
203+
]
166204
}

misc/mk/common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ CFLAGS += $(INCLUDE) -D__SWITCH__ -D__RTLD_6XX__
4646

4747
CFLAGS += $(EXL_CFLAGS) -I"$(DEVKITPRO)/libnx/include" -I$(ROOT_SOURCE) $(addprefix -I,$(MODULES)) -I"/Users/blujay/dev/usb-testing/Atmosphere-libs/libstratosphere/include"
4848

49-
CXXFLAGS := $(CFLAGS) $(EXL_CXXFLAGS) -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -std=gnu++2b
49+
CXXFLAGS := $(CFLAGS) $(EXL_CXXFLAGS) -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-unwind-tables -std=c++20
5050

5151
ASFLAGS := -g $(ARCH)
52-
LDFLAGS := -specs=$(SPECS_PATH)/$(SPECS_NAME) -g $(ARCH) -Wl,-Map,$(notdir $*.map) -nostartfiles -lstratosphere -L/Users/blujay/dev/usb-testing/Atmosphere-libs/libstratosphere/lib/nintendo_nx_arm64_armv8a/release
52+
LDFLAGS := -specs=$(SPECS_PATH)/$(SPECS_NAME) -g $(ARCH) -Wl,-Map,$(notdir $*.map) -nostartfiles
5353

5454
LIBS :=
5555

0 commit comments

Comments
 (0)