Removed libc from LIBS in target.mk but added libc and stdcxx as boot modules for cstdint to be found

This commit is contained in:
Michael Mueller
2022-07-01 16:34:58 +02:00
parent c4a73980da
commit db81856dac
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ install_config {
</config>
}
set boot_modules {
core init timer vfs.lib.so ld.lib.so thread_test
core init timer vfs.lib.so ld.lib.so libm.lib.so libc.lib.so stdcxx.lib.so thread_test
}
build_boot_image $boot_modules
append qemu_args "-nographic -m 64"

View File

@@ -1,4 +1,4 @@
TARGET = thread_test
SRC_CC = thread_test.cc
LIBS += base
LIBS += base stdcxx
CXXFLAGS += -Wno-error

View File

@@ -50,7 +50,7 @@ public:
for (unsigned i = 0; i < space.total(); i++) {
Affinity::Location location = env.cpu().affinity_space().location_of_index(i);
Test_thread *thread = new (_heap) Test_thread(env, i, location);
Test_thread *thread = new (_heap) Test_thread(env, (uint16_t)i, location);
thread->start();
_threads.insert(&thread->_list_element);