mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
fsdev: Reduce TLS footprint for rarely used codepaths
This commit is contained in:
parent
5f5d4c9785
commit
69a63bbee8
@ -763,7 +763,7 @@ fsdev_write_safe(struct _reent *r,
|
||||
/* Copy to internal buffer and transfer in chunks.
|
||||
* You cannot use FS read/write with certain memory.
|
||||
*/
|
||||
static __thread char tmp_buffer[8192];
|
||||
char tmp_buffer[0x1000];
|
||||
while(len > 0)
|
||||
{
|
||||
size_t toWrite = len;
|
||||
@ -868,7 +868,7 @@ fsdev_read_safe(struct _reent *r,
|
||||
/* Transfer in chunks with internal buffer.
|
||||
* You cannot use FS read/write with certain memory.
|
||||
*/
|
||||
static __thread char tmp_buffer[8192];
|
||||
char tmp_buffer[0x1000];
|
||||
while(len > 0)
|
||||
{
|
||||
u64 toRead = len;
|
||||
|
Loading…
Reference in New Issue
Block a user