mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
__thread fix by fincs.
This commit is contained in:
parent
d7e611f9f4
commit
cca73c47fa
@ -32,7 +32,7 @@ INCLUDES := include
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -march=armv8-a -mtp=soft -fPIC
|
ARCH := -march=armv8-a -mtp=soft -fPIC -ftls-model=local-exec
|
||||||
|
|
||||||
CFLAGS := -g -Wall -Werror \
|
CFLAGS := -g -Wall -Werror \
|
||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
|
@ -110,8 +110,8 @@ static fsdev_fsdevice fsdev_fsdevices[32];
|
|||||||
/*! @endcond */
|
/*! @endcond */
|
||||||
|
|
||||||
static char __cwd[PATH_MAX+1] = "/";
|
static char __cwd[PATH_MAX+1] = "/";
|
||||||
static /*__thread*/ char __fixedpath[PATH_MAX+1];
|
static __thread char __fixedpath[PATH_MAX+1];
|
||||||
//static /*__thread*/ uint16_t __utf16path[PATH_MAX+1];
|
//static __thread uint16_t __utf16path[PATH_MAX+1];
|
||||||
|
|
||||||
static fsdev_fsdevice *fsdevFindDevice(const char *name)
|
static fsdev_fsdevice *fsdevFindDevice(const char *name)
|
||||||
{
|
{
|
||||||
@ -658,7 +658,7 @@ fsdev_write_safe(struct _reent *r,
|
|||||||
/* Copy to internal buffer and write in chunks.
|
/* Copy to internal buffer and write in chunks.
|
||||||
* You cannot write from read-only memory.
|
* You cannot write from read-only memory.
|
||||||
*/
|
*/
|
||||||
static /*__thread*/ char tmp_buffer[8192];
|
static __thread char tmp_buffer[8192];
|
||||||
while(len > 0)
|
while(len > 0)
|
||||||
{
|
{
|
||||||
size_t toWrite = len;
|
size_t toWrite = len;
|
||||||
|
Loading…
Reference in New Issue
Block a user