diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-22 14:06:22 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-22 14:06:22 +0200 |
commit | 63764b3a652e7bbde9e11e7a6b1b3dab65bb54ee (patch) | |
tree | d541fc804219fb2db5e5c61ceec023b773273ef8 /ELFLoader/ExecSpace.cpp | |
parent | 4cbf079a1726c55599d0735bc9f81d5a50cd7446 (diff) | |
download | serenity-63764b3a652e7bbde9e11e7a6b1b3dab65bb54ee.zip |
Import very modest Userland.
Diffstat (limited to 'ELFLoader/ExecSpace.cpp')
-rw-r--r-- | ELFLoader/ExecSpace.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ELFLoader/ExecSpace.cpp b/ELFLoader/ExecSpace.cpp index 8fe97a76ce..fb6d55a0dd 100644 --- a/ELFLoader/ExecSpace.cpp +++ b/ELFLoader/ExecSpace.cpp @@ -12,7 +12,7 @@ ExecSpace::~ExecSpace() { } -#ifdef SERENITY_KERNEL +#ifdef SERENITY int puts(const char* str) { kprintf("%s\n", str); @@ -25,7 +25,7 @@ void ExecSpace::initializeBuiltins() m_symbols.set("puts", { (char*)puts, 0 }); } -#ifdef SERENITY_KERNEL +#ifdef SERENITY bool ExecSpace::loadELF(ByteBuffer&& file) #else bool ExecSpace::loadELF(MappedFile&& file) @@ -49,7 +49,7 @@ static void disassemble(const char* data, size_t length) if (!length) return; -#ifdef SERENITY_KERNEL +#ifdef SERENITY for (unsigned i = 0; i < length; ++i) { kprintf("%b ", (unsigned char)data[i]); } |