Commit Graph

17 Commits

Author SHA1 Message Date
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
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
Crayon2000
7151534641 Fix compiler warnings
These are the two warnings that I fixed:

/src/dynamic_libs/os_functions.c: In function '_os_find_export':
/src/dynamic_libs/os_functions.c:171:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(a) - 1; i++)
                       ^
/src/dynamic_libs/os_functions.c:177:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (i = 0; i < sizeof(b) - 1; i++)
                       ^
2017-04-29 21:28:05 -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
07d29c1b9f os_functions: Sort special cases by FW version again
It was really hard to find version 5.5.0, because everything else was
sorted.
2017-04-19 21:49:21 +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
dimok789
aecfb5a1e8 added launch title 2016-05-10 22:53:34 +02:00
Maschell
b0f9e662de Missing stuff for 3.x.x support 2016-04-28 21:11:20 +02:00
Maschell
1fcfb43f39 First commit 2016-04-25 20:33:48 +02:00