Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 612be4d

Browse files
author
Face Kapow
committed
Missed 2 conflicts 😄
1 parent 7e9d9af commit 612be4d

2 files changed

Lines changed: 7 additions & 19 deletions

File tree

src/kernel/kernel-main.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ void runtime_rng_buf(void* const buf, const size_t size) {
156156
}
157157

158158
void KernelMain::InitSystemBSP(void* mbt) {
159-
<<<<<<< HEAD
160159
// some musl libc init
161160
libc.threads_minus_1 = 0;
162161

src/kernel/native-object.cc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,6 @@ NATIVE_FUNCTION(NativesObject, InitrdReadFileBuffer) {
336336
RT_ASSERT(buf);
337337
memcpy(buf, file.Data(), file.Size());
338338

339-
LOCAL_V8STRING(s_memory_range, "memoryRange");
340-
LOCAL_V8STRING(s_io_range, "ioRange");
341-
LOCAL_V8STRING(s_irq_range, "irqRange");
342-
LOCAL_V8STRING(s_acpi, "acpi");
343-
LOCAL_V8STRING(s_allocator, "allocator");
344-
LOCAL_V8STRING(s_loader, "loader");
345-
LOCAL_V8STRING(s_natives, "natives");
346-
LOCAL_V8STRING(s_libsodium, "libsodium");
347-
348339
// Let V8 manage buffer lifetime
349340
v8::Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(iv8, buf, file.Size(),
350341
v8::ArrayBufferCreationMode::kInternalized);
@@ -388,20 +379,18 @@ NATIVE_FUNCTION(NativesObject, SystemInfo) {
388379
obj->Set(context, s_irq_counters, counters);
389380
}
390381

391-
<<<<<<< HEAD
392-
obj->Set(context, s_libsodium, (new LibsodiumObject())
393-
->BindToTemplateCache(th->template_cache())
394-
->GetInstance());
395-
396-
args.GetReturnValue().Set(obj);
397-
}
398-
=======
399382
{
400383
auto ev_count = static_cast<uint32_t>(th->thread_manager()->events_count());
401384
LOCAL_V8STRING(s_events_count, "eventsCount");
402385
obj->Set(context, s_events_count, v8::Uint32::NewFromUnsigned(iv8, ev_count));
403386
}
404-
>>>>>>> 30abc903d2341089395161ae3c0a1336dae24ea7
387+
388+
{
389+
LOCAL_V8STRING(s_libsodium, "libsodium");
390+
obj->Set(context, s_libsodium, (new LibsodiumObject())
391+
->BindToTemplateCache(th->template_cache())
392+
->GetInstance());
393+
}
405394

406395
args.GetReturnValue().Set(obj);
407396
}

0 commit comments

Comments
 (0)