mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:07:36 +00:00
Import very modest Userland.
This commit is contained in:
parent
4cbf079a17
commit
63764b3a65
23 changed files with 81 additions and 27 deletions
2
LibC/.gitignore
vendored
Normal file
2
LibC/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*.o
|
||||
LibC.a
|
|
@ -1,6 +1,7 @@
|
|||
OBJS = \
|
||||
stdio.o \
|
||||
unistd.o
|
||||
unistd.o \
|
||||
entry.o
|
||||
|
||||
LIBRARY = LibC.a
|
||||
ARCH_FLAGS =
|
||||
|
@ -11,7 +12,7 @@ FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions
|
|||
OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables
|
||||
INCLUDE_FLAGS = -I.. -I.
|
||||
|
||||
DEFINES = -DSERENITY_LIBC -DSANITIZE_PTRS
|
||||
DEFINES = -DSERENITY -DSANITIZE_PTRS
|
||||
|
||||
CXXFLAGS = $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||
CXX = g++
|
||||
|
|
12
LibC/entry.cpp
Normal file
12
LibC/entry.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <Kernel/Syscall.h>
|
||||
|
||||
extern "C" int main(int, char**);
|
||||
|
||||
extern "C" int elf_entry()
|
||||
{
|
||||
// FIXME: Pass appropriate argc/argv.
|
||||
main(0, nullptr);
|
||||
|
||||
// Birger's birthday <3
|
||||
return 20150614;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue