Commit Graph

287 Commits

Author SHA1 Message Date
David Guillen Fandos
eae72ff954 Make getuid/geteuid return 1000 to "look like" a non-root user. 2021-12-09 21:24:14 +01:00
David Guillen Fandos
d05f1945d1 Add getuid/geteuid to return user=0 (root)
Hopefully allows some programs to build even though there's no support
for users on the system.
2021-12-09 18:29:00 +01:00
David Guillen Fandos
85f34c19a6 Add dummy getpwuid and getpwnam for more POSIX compatibility.
This should get around libs/programs that just attempt to get the
current users's home directory.
2021-12-09 18:24:53 +01:00
Paul Sajna
8b9625399a Merge pull request #72 from fjtrujy/modinfo
Create modinfo & fix some issues
2021-12-06 13:13:31 -08:00
Francisco Javier Trujillo Mata
27d0081666 Fix copy & paste issue in the documentation 2021-12-06 21:55:15 +01:00
Francisco Javier Trujillo Mata
f6495356e8 Fix headers and imports 2021-12-06 21:24:44 +01:00
Francisco Javier Trujillo Mata
98b7d836ee Create specific modinfo library 2021-12-06 21:24:44 +01:00
Ben
1fefe31635 Merge pull request #67 from fjtrujy/pspsdk_stdlib
Add pspsdk to the standard libs
2021-12-05 18:50:16 +11:00
Francisco Javier Trujillo Mata
e66eddd9b3 Add pspsdk to the standard libs 2021-12-04 14:22:35 +01:00
Ben
0edae0ab81 Merge pull request #65 from fjtrujy/prx_heap
Remove specific condition for heap and PRX files
2021-12-04 09:26:22 +11:00
Francisco Javier Trujillo Mata
98ec5c7860 Merge pull request #66 from davidgfnet/master
Move inline stubs to a separated asm file
2021-12-03 23:23:36 +01:00
David Guillen Fandos
df9e296904 Move inline stubs to a separated asm file
Defining asm labels in inline assembly is not a good idea, according to
GCC docs it can result in labels being deleted (optimized away) or even
duplicated (see https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html).

This affects LTO linking, since LTO removes the four symbols and results
in undefined references. Using an ASM file makes sure that symbols exist
with the correct attributes.
2021-12-03 21:52:59 +01:00
Francisco Javier Trujillo Mata
01d000e03e Remove specific condition for heap and PRX files 2021-12-03 20:14:30 +01:00
Carsten Teibes
1ca89ebe87 Merge pull request #63 from fjtrujy/master
Improve Exit/Terminate process
2021-11-29 22:00:26 +01:00
Francisco Javier Trujillo Mata
cfb9b04954 Improve exit process 2021-11-25 17:30:24 +01:00
Francisco Javier Trujillo Mata
af5e24ef06 Deinit mutexs 2021-11-25 17:20:55 +01:00
Francisco Javier Trujillo Mata
976707e8a0 Merge pull request #62 from pspdev/wally4000-patch-1 2021-11-25 09:18:45 +01:00
Ben
bfcc5ca744 Update README.md 2021-11-25 15:43:58 +11:00
Ben
9feb201936 Merge pull request #61 from fjtrujy/master
Fix gettimeofday & other small improvements
2021-11-23 11:41:23 +11:00
Francisco Javier Trujillo Mata
227b0de587 Make CI to fail if one sample fails 2021-11-23 01:31:57 +01:00
Francisco Javier Trujillo Mata
515834c2bf Improve return error nanosleep 2021-11-23 01:31:39 +01:00
Francisco Javier Trujillo Mata
04c4d9e76f Add ftime function 2021-11-23 01:31:24 +01:00
Francisco Javier Trujillo Mata
98bed321f1 Fix wrong struct used for timeval. Newlib expects 64bits for seconds and PSP expects 32 2021-11-23 01:31:06 +01:00
Francisco Javier Trujillo Mata
6192ee8bdf Merge pull request #60 from sharkwouter/improve-cmake
Add CreatePBP.cmake and add some variables relied on by software
2021-11-17 22:39:22 +01:00
Wouter Wijsman
75085d4970 Also set PSP definition for gcc and cmake 2021-11-17 22:35:02 +01:00
Wouter Wijsman
074a740bce Add CreatePBP.cmake and add some variables relied on by software 2021-11-17 15:45:44 +01:00
Ben
2186ee2441 Merge pull request #59 from fjtrujy/master
Remove fjtrujy docker reference
2021-11-17 21:20:50 +11:00
Francisco Javier Trujillo Mata
ac08cad362 Remove fjtrujy docker reference 2021-11-17 11:13:14 +01:00
Ben
a095fcaa1f Merge pull request #58 from fjtrujy/master
Update PSPSDK and make it more POSIX
2021-11-17 12:47:24 +11:00
Francisco Javier Trujillo Mata
77ab536474 Implement some missings todo, and add libpsprtc as standard library
Remove -lm from examples because is also part of standard libraries
2021-11-16 11:25:01 +01:00
Francisco Javier Trujillo Mata
c0f526059a Rename libpsplibc to libcglue 2021-11-15 15:41:30 +01:00
Francisco Javier Trujillo Mata
fe46176fd0 Create the CI/CD of PSPSDK:
- Generate PSPSDK docker layer
- Generate and expose all the samples binaries (PBP files)
- Generate doxygen documentation and upload it to github pages
2021-11-15 15:38:42 +01:00
Francisco Javier Trujillo Mata
0a803b844d Update all samples to new requirements, and expose a makefile to compile all of them 2021-11-15 15:38:42 +01:00
Francisco Javier Trujillo Mata
6e80c9bd29 Add the cmake toolchain file to the base sdk and psp share dir to variables 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
514f7947d7 Improve base makefiles to be used with the new POSIX and standard environment 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
cee267dcb7 Add new libc headers in the sdk include lists 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
0302a09f2a Create a macro for helping into defining the threshold in RAM 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
1857e98f0d Creation of the libpsplibc library:
- Implement callback functions needed by newlib
- POSIX environment
- Thread safe alloc/dealloc open/close files
- Changed the way that HEAP is allocated, now by default it uses all available RAM except 512KB/
- Implement a lot of missing functions for having a real POSIX environment (some implementations are dummy because are impossible to do in the PSP OS)
- Adding specific inet changes that previously where in the PSP newlib patch
- Deleting the uncompleted & custom libc library
- Create some weak functions during init of libc process to save some KB if we want to have tiny apps
- Other I/O improvements
2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
35e407e8f1 Create macro for defining and empty/dummy __psp_libc_init function 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
1fdb7fd770 Make strong references for __psp_libc_init in the crt0 files 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
3adc56a88e Improve compatibility newer versions of newlib 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
d2a1abcc25 Adding missing LightWeight mutex functions 2021-11-15 15:25:02 +01:00
Francisco Javier Trujillo Mata
13db378d32 Adding missing stub for sceKernelMaxFreeMemSize 2021-11-15 15:25:01 +01:00
Francisco Javier Trujillo Mata
8a724e4367 Adding some missing headers to pspnet_inet 2021-11-15 15:25:01 +01:00
Francisco Javier Trujillo Mata
da65a39152 Merge pull request #57 from xyzshantaram/patch-1
pspctrl.h: Document PSP_CTRL_MODE_DIGITAL behavior
2021-11-03 21:31:17 +01:00
Siddharth Singh
80bf720df2 pspctrl.h: Document PSP_CTRL_MODE_DIGITAL behavior 2021-11-03 23:28:06 +05:30
Paul Sajna
1d32cbfe04 Merge pull request #55 from Felix-Dev/patch-1
pspctrl.h: Fix PspCtrlButtons link and newline attempt for Doxygen output
2021-04-05 13:57:37 -07:00
Felix-Dev
312cd74a50 pspctrl.h: Remove useless spaces 2021-04-05 22:48:28 +02:00
Felix-Dev
505bd55b0a pspctrl.h: Remove newlines which were not required 2021-04-05 22:43:44 +02:00
Felix-Dev
75f47de778 pspctrl.h: Attempt to add newlines to doxygen output 2021-04-05 22:41:46 +02:00