general refactoring and coding format fixes

This commit is contained in:
wheremyfoodat 2023-08-03 12:25:25 +03:00 committed by georgemoralis
parent 30c1062893
commit 3e60a67785
8 changed files with 15 additions and 13 deletions

View file

@ -7,8 +7,8 @@ constexpr u64 SCE_KERNEL_MAIN_DMEM_SIZE = 5376_MB; // ~ 6GB
// memory types
typedef enum : int {
enum MemoryTypes : u32 {
SCE_KERNEL_WB_ONION = 0, // write - back mode (Onion bus)
SCE_KERNEL_WC_GARLIC = 3, // write - combining mode (Garlic bus)
SCE_KERNEL_WB_GARLIC = 10 // write - back mode (Garlic bus)
} memory_types;
};

View file

@ -2,8 +2,9 @@
#include <bit>
#include <magic_enum.hpp>
#include <debug.h>
#include "../../../../Debug.h"
#include <debug.h>
#include "../../../../Util/Log.h"
#include "../../../../Util/Singleton.h"
#include "../ErrorCodes.h"
@ -42,7 +43,7 @@ int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u
// TODO debug logging
return SCE_KERNEL_ERROR_EINVAL;
}
auto memtype = magic_enum::enum_cast<memory_types>(memoryType);
auto memtype = magic_enum::enum_cast<MemoryTypes>(memoryType);
LOG_INFO_IF(true, "search_start = {:#018x}\n", searchStart);
LOG_INFO_IF(true, "search_end = {:#018x}\n", searchEnd);

View file

@ -1,6 +1,6 @@
#include <debug.h>
#include "ThreadManagement.h"
#include "../ErrorCodes.h"
#include "../../../../Debug.h"
namespace HLE::Libs::LibKernel::ThreadManagement
{

View file

@ -1,7 +1,7 @@
#include "LibC.h"
#include "Libs.h"
#include "../Loader/Elf.h"
#include "../../../Debug.h"
#include <debug.h>
#include <pthread.h>
namespace HLE::Libs::LibC {

View file

@ -1,7 +1,7 @@
#include "../Loader/Elf.h"
#include "LibKernel.h"
#include "Libs.h"
#include "../../../Debug.h"
#include <debug.h>
#include "../../../Util/Log.h"
#include "Kernel/MemoryManagement.h"
#include "../../../Util/Singleton.h"

View file

@ -1,7 +1,7 @@
#include "LibSceVideoOut.h"
#include "Libs.h"
#include "../Loader/Elf.h"
#include "../../../Debug.h"
#include <debug.h>
#include "VideoOut/VideoOutCodes.h"
#include "UserManagement/UsrMngCodes.h"
#include "../../../Util/Log.h"