Commit Graph

1584 Commits

Author SHA1 Message Date
yellows8
a405bc4827 Added account. Added u128 type to types.h. 2017-11-29 23:31:18 -05:00
yellows8
99e4a61492 Moved fsdev_dir_t/*MAGIC into the .h. Removed fsdevWriteSafe(). Added fsdevMountDevice/fsdevUnmountDevice to the .h. Moved the code for fsdevUpdateDevices() into fsdevInit(). Changed _fsdevMountDevice() to static. Added fsdev_read_safe(). Automatically calll fsdev_{read/write}_safe() when required, instead of using fsdevWriteSafe(). 2017-11-29 19:40:21 -05:00
yellows8
49959e4e37 FS adjustments + fixed fsFsGetFreeSpace/fsFsGetTotalSpace. In fs_dev: fixed cwd handling, unmounting adjustments, use fsFsGetEntryType(), updated fsdev_dirnext(), and properly handle fsdev_statvfs(). 2017-11-29 01:47:11 -05:00
yellows8
02526c920e Updated comments for fsdevWriteSafe(). 2017-11-27 18:43:02 -05:00
yellows8
59880e9488 Removed output bytes_written for fsFileWrite() since the command doesn't actually return that. In fsdev_open(), set the FS_OPEN_APPEND flag when opening for writing. Adjusted file-creation handling in fsdev_open(). 2017-11-27 17:40:49 -05:00
yellows8
25f2839c75 Imported util/utf from libctru. Updated appInit/appExit. Fs adjustments + implemented IDirectory. Imported a modified version of sdmc_dev from libctru as fs_dev, this currently isn't usable. 2017-11-23 15:00:56 -05:00
shinyquagsire23
63f91dd215 Add hidTouchCount, hidTouchRead, KEY_TOUCH. Header tweaks. 2017-11-22 17:09:37 -07:00
shinyquagsire23
aa458e59f9 Add hidGetControllerLayout 2017-11-22 17:09:32 -07:00
yellows8
9c5afe8302 Added svcOutputDebugString. 2017-11-21 00:35:08 -05:00
shinyquagsire23
472c408288 Add HIDMousebutton 2017-11-20 02:27:21 -07:00
shinyquagsire23
fc71b06161 Implement HID keys held/down/up 2017-11-20 02:17:30 -07:00
shinyquagsire23
11ee3c188e Add HID shared memory structures and enums 2017-11-20 02:17:26 -07:00
shinyquagsire23
3db154a8f0 Add bsdSendTo and bsdSetSockOpt 2017-11-19 01:45:15 -07:00
yellows8
42fbabe9d1 Added nvQueryEvent(). 2017-11-15 22:34:07 -05:00
plutoo
61ff5bd9a1
Merge pull request #18 from devkitPro/dka64-a5-updates
devkitA64 alpha 5 updates (locks, TLS, etc) {TEST BEFORE MERGE}
2017-11-16 01:36:39 +01:00
yellows8
567e8ed6e1 Imported more defines from linux ioctl.h. In nvIoctl(), only set the addr/size for send/recv buffers when the associated direction bit is set. 2017-11-14 12:15:23 -05:00
fincs
508a87ea5d Mark fatalSimple with __attribute__((noreturn)) 2017-11-14 01:14:23 +01:00
fincs
e836ee7bb9 Implement TLS/newlib reent support (untested) 2017-11-14 00:31:47 +01:00
fincs
03674bba85 Implement lock_init{_recursive} newlib syscalls 2017-11-14 00:31:47 +01:00
fincs
f27685b7b3 Integrate newlib locks with libnx (R)Mutex (untested, incomplete) 2017-11-14 00:31:47 +01:00
yellows8
9377851197 Imported usbComms from elsewhere. Removed usb_dev.h since the .c for it was previously removed. In usbDsInitialize(), skip calling _usbDsSetVidPidBcd() when deviceinfo is NULL. 2017-11-13 17:18:07 -05:00
yellows8
38cc12f02c Moved ioctl defines into a dedicated header, with some additional defines. Load the output error field for nv cmds. 2017-11-12 23:27:42 -05:00
yellows8
caa06c4d6c Implemented nv. Use TransactParcelAuto instead of TransactParcel when running on >=3.0.0. Added ipcQueryPointerBufferSize(). Minor other change. 2017-11-12 20:34:30 -05:00
plutoo
4543558cd3 Add moar syscalls 2017-11-12 03:57:49 +01:00
yellows8
41303238e2 Added svcGetProcessId. Fixed pid type for svcDebugActiveProcess. 2017-11-09 15:49:41 -05:00
yellows8
80890a3b8e Fixed gfx and parcel issues. Parcel logging adjustments, etc. Changed out_parcel to parcel_reply. 2017-11-08 22:36:30 -05:00
yellows8
1d8c51f6fa Added svcGetSystemTick. Added LIBNX_PARCEL_ERRBASE to result.h. Added BINDER_FIRST_CALL_TRANSACTION. Added gfxproducer and parcel. Use gfxproducer in gfx and added gfxSwapBuffers(). 2017-11-07 13:56:57 -05:00
yellows8
b5abd52b8b Implemented viSetLayerScalingMode(). Implemented vsync handling. Minor other change. 2017-11-05 00:50:58 -04:00
plutoo
d0c9d8294d Don't mind this 2017-11-05 04:02:00 +01:00
plutoo
9a67c39fd0 Moved cache.s to arm/, implemented kernel/version.c, get rid of broken uart driver [for now] 2017-11-05 03:58:54 +01:00
plutoo
fd128b0ae2 Random shit 2017-11-05 03:58:54 +01:00
yellows8
9866f8e8b2 Implemented binder. Added error LIBNX_BADINPUT. Set StrayLayer in viOpenLayer properly. 2017-11-04 18:28:13 -04:00
yellows8
ec1faa34ef Added display+layer support. Started 'gfx'. 2017-11-03 12:33:33 -04:00
yellows8
d62b909757 Added hid. 2017-10-27 17:10:48 -04:00
yellows8
557d68139a Implemented applet. 2017-10-27 12:20:52 -04:00
yellows8
ff80e7e668 Added svcGetProcessList. 2017-10-21 11:31:23 -04:00
yellows8
cc6005231e Added usbdev warning. 2017-10-16 19:35:41 -04:00
yellows8
68dbb72b04 Added fsExit and fsGetServiceSession. Check whether initialization was already done in fsInitialize, etc. Added fs to __appInit/__appExit. 2017-10-14 21:45:59 -04:00
plutoo
6280e1ba58 Introducing shmem 2017-10-14 15:00:52 +02:00
yellows8
96dc3a4ff0 Added usbdev under new directory 'devices'. Added more libnx errors to result.h. Added usbDsParseReportData() and the structs for it. Changed the post-buffer funcs 'out' field to 'urbId'. Updated the get-report funcs for using the report-data structure. 2017-10-12 18:20:31 -04:00
yellows8
6aa7ac0ec8 Fixed name for endpoint get-report cmd. 2017-10-12 02:08:25 -04:00
yellows8
7333864957 Added usbDsGetState() and usbDsWaitReady(). 2017-10-10 11:48:39 -04:00
yellows8
d1ba4d4e2b Added osDCacheFlush() for use by usbds. 2017-10-10 00:44:00 -04:00
yellows8
6cea85f338 Added usbds. The post-buffer cmds require dcache-flush for the specified buffer, this isn't included yet. 2017-10-09 21:05:53 -04:00
yellows8
8308791835 Imported Doxyfile. Added svcClearEvent. Added more libnx errors to result.h. Updated viInitialize for using error LIBNX_ALREADYINITIALIZED. 2017-10-09 20:54:29 -04:00
plutoo
99bd9c76aa Attempt to introduce newlib heap implementation 2017-10-09 21:24:11 +02:00
plutoo
85538c9fb3 Introducing thread.. 2017-10-08 18:39:33 +02:00
plutoo
a9555bb5b5 Implement virtual memory allocator 2017-10-08 15:11:59 +02:00
plutoo
74b14f4c63 Introducing fs.. 2017-10-07 22:49:16 +02:00
plutoo
3926969ebc Minor changes
* Refactored system/*
* Implemented all of tmem
* Introduced virtmem
2017-10-07 15:32:57 +02:00
yellows8
c14d9baffb Merge branch 'master' of github.com:switchbrew/libnx 2017-09-24 18:40:26 -04:00
yellows8
8a9d51db0c Added smExit and added sm to appInit/appExit. Added svcCreateSession. Added vi. 2017-09-24 18:40:13 -04:00
plutoo
2a981d5c69 Introducing mutex 2017-09-25 00:04:03 +02:00
plutoo
983c708830 Ipc fixes 2017-09-24 21:28:36 +02:00
plutoo
718d55f45a Added sm service commands 2017-09-24 19:49:24 +02:00
plutoo
6e84dee135 Introducing fatal 2017-09-24 18:49:27 +02:00
yellows8
b52787a4fa Added MemInfo struct, based on the libctru one. Added some debug svcs. 2017-09-18 14:41:53 -04:00
yellows8
19f0b5a828 Added sysinit/exit code similar to libctru, with updated crt0. Moved svcExitProcess into the library. Changed HEAP_SIZE. Adjusted some svc.s formatting. Added svcGetInfo. Added svcSleepThread, device SVCs, svcCallSecureMonitor, and the struct for svcCallSecureMonitor, based on code from naehrwert. 2017-09-16 10:52:10 -04:00
yellows8
50b52b1258 Added pragma to ipc.h. 2017-09-14 18:46:58 -04:00
plutoo
003e300e83 Introducing ipc domains, bsd stuff 2017-09-15 00:18:52 +02:00
plutoo
fb1d6f4d5c Missed the header file 2017-09-12 02:01:10 +02:00
plutoo
22727bcf8d Got bsdConnect working properly 2017-09-12 01:59:07 +02:00
plutoo
c6ffc2a6e1 Ipc bugfix 2017-09-11 05:16:15 +02:00
plutoo
6c2d06f9a8 Fixing bugs. bsdInitialize currently fails with 0xe401, probably due to ipc bug 2017-09-11 04:38:38 +02:00
plutoo
30650b5d69 Implemented heap, transfer memory, bsd cmd0 2017-09-10 23:17:57 +02:00
plutoo
0d8a5a6839 Restructuring a little 2017-09-10 20:19:32 +02:00
plutoo
10b41de71e Merge branch 'master' of https://gitlab.com/yellows8/libnx 2017-09-10 17:40:29 +02:00
plutoo
e2f5a17ba9 Almost done with ipc + sm implementation 2017-09-10 17:40:01 +02:00
yellows8
cfe87868f4 Added svcQueryMemory. 2017-09-09 22:10:53 -04:00
yellows8
59290a5b87 Added svcQueryPhysicalAddress. 2017-09-09 16:27:55 -04:00
yellows8
1d20c999f1 Merge branch 'master' of gitlab.com:yellows8/libnx 2017-09-09 12:10:49 -04:00
yellows8
778d5fc4fb Added proper svcQueryIoMapping. 2017-09-09 12:10:45 -04:00
plutoo
92f8243a42 Merge branch 'master' of https://gitlab.com/yellows8/libnx 2017-09-09 14:57:44 +02:00
plutoo
0290410d06 Finish ipc implementation prototype 2017-09-09 14:57:14 +02:00
yellows8
346324cc5b Added svcCloseHandle, svcWaitSynchronization, and svcAcceptSession. 2017-09-09 01:30:16 -04:00
plutoo
dc376aa222 More ipc 2017-09-09 06:38:56 +02:00
yellows8
74fef6895a Added pfs0/nso building in switch_rules and added svcBreak. 2017-09-08 23:57:49 -04:00
plutoo
b39773b1d4 Trying to make first few steps towards relocations 2017-09-09 02:48:15 +02:00
plutoo
a8fecf77e1 stuff 2017-09-09 01:42:33 +02:00
yellows8
b86cec7924 Properly fixed getThreadLocalStorage. 2017-09-08 18:31:54 -04:00
yellows8
6c05799e8c Added result.h. 2017-09-08 18:05:50 -04:00
yellows8
3b48bab62a Fixed getThreadLocalStorage. 2017-09-08 17:56:32 -04:00
yellows8
45d7a25a20 Added types.h and switch.h. Moved svc.h and updated svc.h. 2017-09-08 17:53:58 -04:00
yellows8
bda7f39904 Initial commit 2017-09-08 17:15:38 -04:00