fs: implement AccessLog, enable for File operations
This commit is contained in:
@@ -41,6 +41,9 @@ namespace ams::os::impl {
|
||||
thread->name_buffer[0] = '\x00';
|
||||
thread->name_pointer = thread->name_buffer;
|
||||
|
||||
/* Set internal tls variables. */
|
||||
thread->atomic_sf_inline_context = 0;
|
||||
|
||||
/* Mark initialized. */
|
||||
thread->state = ThreadType::State_Initialized;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2020 Atmosphère-NX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include <stratosphere.hpp>
|
||||
|
||||
namespace ams::os {
|
||||
|
||||
/* TODO: Nintendo reserves half the TLS slots for SDK usage. */
|
||||
/* We don't have that ability...how should this work? */
|
||||
Result SdkAllocateTlsSlot(TlsSlot *out, TlsDestructor destructor) {
|
||||
return os::AllocateTlsSlot(out, destructor);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user