Commit Graph

17 Commits

Author SHA1 Message Date
Maschell
c3a91ebe96 added missed functions. OSGetCoreId and OSForceFulLRelaunch 2017-09-11 18:32:59 +02:00
Maschell
f5041f5d7f add DCStoreRange 2017-08-28 18:10:22 +02:00
Maschell
c5c73ce18e add IOS_IoctlAsync function 2017-08-23 19:36:18 +02:00
Maschell
048a585d5e Added some more OS functions, added nn_save and nn_act acquire 2017-08-13 20:11:23 +02:00
Maschell
7a31349744 Added ProcUI functions 2017-07-20 15:18:32 +02:00
Maschell
a2f4abdbeb [Caution] Renamed the sleep functions to resolve conflicts with the unistd.h 2017-05-07 14:23:06 +02:00
Crayon2000
67cfaa568d Add OSScreenPutPixelEx function
OSScreenPutPixelEx will draw a pixel of a certain color to the specified coordinates. This just writes the input u32 to the target location in the framebuffer, nothing is done with the data already stored in the framebuffer.
2017-04-30 14:40:53 -04:00
Jonathan Neuschäfer
b289fed3b7 os_functions: Add OSIsAddressValid
This functions checks whether a virtual address is mapped readable.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
1afc4b899e os_functions: Add OS{AllocFrom,FreeTo}System
OSAllocFromSystem allocates a physically contiguous area of memory, and
returns a pointer to it as a virtual address in the calling process's
address space. OSFreeToSystem is the corresponding free function.
2017-04-24 05:41:14 +02:00
Jonathan Neuschäfer
775993a09b Move most of OS_FIND_EXPORT{,_EX} into a function
This brought the file size of os_functions.o (compiled at -O2, not stripped)
from 15K to 9.7K. Section sizes changed in the following ways:

        .text  .rela.text  .data  .rodata.str1.4  .syntab  .strtab  .shstrtab
before   5660        2928    276            3111     1264     1255         89
after    2860        2376    276            1175     1296     1294         89

The most obvious win is due to not including two strings per imported function
("OSFoo" and "Function OSFoo is NULL") in the .rodata section anymore, but
outlining the error-handling code also reduced the size of .text significantly.
2017-04-24 05:41:13 +02:00
Jonathan Neuschäfer
a670f34082 os_functions.h: Declare all memory functions 2017-04-18 23:15:35 +02:00
Maschell
a136b12c52 Using u32 and s32 only instead of (unsigned) int to be more consistent with data types 2017-04-10 11:04:06 +02:00
Maschell
5e01fb7d3f Added WPAD and socket functions 2017-03-30 17:51:11 +02:00
Maschell
7310a39d47 Added some IOS_... functions 2016-11-29 18:36:23 +01:00
rw-r-r-0644
e004df5c7d added OSTicksTOCalendarTime and OSCalendarTime struct 2016-09-19 20:13:04 +02:00
Maschell
4ade58bf6a Added energy saver functions and pro controller defines 2016-08-18 11:18:44 +02:00
Maschell
1fcfb43f39 First commit 2016-04-25 20:33:48 +02:00