summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
blob: 734d6f3ef22f92537448d411a38ba41f9e81af72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2015 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "common/assert.h"

#include "core/hle/kernel/process.h"
#include "core/hle/kernel/thread.h"

namespace Kernel {

SharedPtr<Process> Process::Create(std::string name, u64 program_id) {
    SharedPtr<Process> process(new Process);

    process->svc_access_mask.set();
    process->name = std::move(name);
    process->program_id = program_id;

    return process;
}

void Process::ParseKernelCaps(const u32 * kernel_caps, size_t len) {
    //UNIMPLEMENTED();
}

void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) {
    g_main_thread = Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority);
}

Kernel::Process::Process() {}
Kernel::Process::~Process() {}

SharedPtr<Process> g_current_process;

}