opuntiaOS - an operating system targeting x86 and ARMv7
at master 559 B view raw
1/* 2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors. 3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com> 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9#ifndef _KERNEL_TASKING_DUMP_H 10#define _KERNEL_TASKING_DUMP_H 11 12#include <platform/generic/tasking/trapframe.h> 13#include <tasking/proc.h> 14 15void dump_and_kill(proc_t* p); 16int dump_prepare_kernel_data(); 17int dump_kernel(const char* err); 18int dump_kernel_from_tf(const char* err, trapframe_t* tf); 19 20#endif // _KERNEL_TASKING_DUMP_H