Skip to content

Commit

Permalink
Added more includes to cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Aug 11, 2024
1 parent 0bac12a commit e64bd06
Show file tree
Hide file tree
Showing 65 changed files with 158 additions and 145 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ add_compile_options(
include_directories(
"${NBOXKRNL_ROOT_DIR}/import/pdclib/include"
"${NBOXKRNL_ROOT_DIR}/import/pdclib/platform/xbox/include"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/dbg"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/ex"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/hal"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/io"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/ke"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/ki"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/mm"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/nt"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/ob"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/ps"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/rtl"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/xc"
"${NBOXKRNL_ROOT_DIR}/nboxkrnl/xe"
)

link_directories(
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ex/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* ergo720 Copyright (c) 2024
*/

#include "..\ex\ex.hpp"
#include "ex.hpp"


EXPORTNUM(16) OBJECT_TYPE ExEventObjectType = {
Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/ex/ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

#include "ex.hpp"
#include "..\ke\ke.hpp"
#include "..\ob\ob.hpp"
#include "..\rtl\rtl.hpp"
#include "ke.hpp"
#include "ob.hpp"
#include "rtl.hpp"
#include <string.h>

#define XC_END_MARKER (XC_VALUE_INDEX)-1
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ex/ex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "..\nt\zw.hpp"
#include "..\ob\ob.hpp"
#include "zw.hpp"
#include "ob.hpp"

#define TIME_ZONE_NAME_LENGTH 4

Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ex/exp_sup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

#include "ex.hpp"
#include "..\rtl\rtl.hpp"
#include "..\rtl\exp_sup.hpp"
#include "rtl.hpp"
#include "exp_sup.hpp"


EXPORTNUM(26) __declspec(naked) VOID XBOXAPI ExRaiseException
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ex/mutant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


#include "ex.hpp"
#include "..\rtl\rtl.hpp"
#include "rtl.hpp"


VOID XBOXAPI ExpDeleteMutant(PVOID Object)
Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/ex/pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* ergo720 Copyright (c) 2023
*/

#include "..\mm\mm.hpp"
#include "..\mm\mi.hpp"
#include "..\ex\ex.hpp"
#include "mm.hpp"
#include "mi.hpp"
#include "ex.hpp"
#include <assert.h>


Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ex/rwlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Fisherman166 Copyright (c) 2020
*/

#include "..\ex\ex.hpp"
#include "ex.hpp"


// Source: Cxbx-Reloaded
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/hal/hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "hal.hpp"
#include "halp.hpp"
#include "..\rtl\rtl.hpp"
#include "rtl.hpp"


// Global list of routines executed during a reboot
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/hal/hal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "..\types.hpp"
#include "..\ke\ke.hpp"
#include "ke.hpp"


using PHAL_SHUTDOWN_NOTIFICATION = VOID(XBOXAPI *)(
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/hal/halp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#pragma once

#include "..\types.hpp"
#include "..\ki\ki.hpp"
#include "..\ki\hw_exp.hpp"
#include "ki.hpp"
#include "hw_exp.hpp"

// PIC i/o ports
#define PIC_MASTER_CMD 0x20
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/hal/interrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "hal.hpp"
#include "halp.hpp"
#include "..\rtl\rtl.hpp"
#include "rtl.hpp"
#include <assert.h>


Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/io/cdrom/cdrom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

#include "cdrom.hpp"
#include "..\io.hpp"
#include "..\..\ob\obp.hpp"
#include "io.hpp"
#include "obp.hpp"


static DRIVER_OBJECT CdromDriverObject = {
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/io/cdrom/xiso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "cdrom.hpp"
#include "xiso.hpp"
#include "..\..\ob\obp.hpp"
#include "obp.hpp"
#include <string.h>
#include <assert.h>

Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/io/cdrom/xiso.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

#pragma once

#include "..\..\io\io.hpp"
#include "..\..\rtl\rtl.hpp"
#include "..\..\ex\ex.hpp"
#include "io.hpp"
#include "rtl.hpp"
#include "ex.hpp"


struct XISO_FILE_INFO {
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/io/fsc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "..\mm\mi.hpp"
#include "..\io\hdd\fatx.hpp"
#include "mi.hpp"
#include "hdd\fatx.hpp"


struct FSCACHE_ELEMENT {
Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/io/hdd/fatx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

#include "hdd.hpp"
#include "..\..\io\fsc.hpp"
#include "..\..\ob\obp.hpp"
#include "..\..\dbg\dbg.hpp"
#include "fsc.hpp"
#include "obp.hpp"
#include "dbg.hpp"
#include <string.h>
#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/io/hdd/fatx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "..\..\io\io.hpp"
#include "..\..\ex\ex.hpp"
#include "io.hpp"
#include "ex.hpp"

#define FATX_VOLUME_DISMOUNTED 2
#define FATX_MAX_FILE_NAME_LENGTH 42
Expand Down
10 changes: 5 additions & 5 deletions nboxkrnl/io/hdd/hdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/

#include "hdd.hpp"
#include "..\..\ob\obp.hpp"
#include "..\..\ex\ex.hpp"
#include "..\..\nt\nt.hpp"
#include "..\..\rtl\rtl.hpp"
#include "..\..\dbg\dbg.hpp"
#include "obp.hpp"
#include "ex.hpp"
#include "nt.hpp"
#include "rtl.hpp"
#include "dbg.hpp"
#include <assert.h>
#include <string.h>

Expand Down
8 changes: 4 additions & 4 deletions nboxkrnl/io/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* ergo720 Copyright (c) 2023
*/

#include "..\ex\ex.hpp"
#include "..\rtl\rtl.hpp"
#include "..\ob\obp.hpp"
#include "..\nt\nt.hpp"
#include "ex.hpp"
#include "rtl.hpp"
#include "obp.hpp"
#include "nt.hpp"
#include "cdrom\cdrom.hpp"
#include "hdd\hdd.hpp"
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/io/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#pragma once

#include "iop.hpp"
#include "..\ob\ob.hpp"
#include "ob.hpp"


#define IoLock() KeRaiseIrqlToDpcLevel()
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/io/iop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "iop.hpp"
#include "hdd\fatx.hpp"
#include "cdrom\xiso.hpp"
#include "..\nt\nt.hpp"
#include "nt.hpp"


const UCHAR IopValidFsInformationQueries[] = {
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/io/iop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "..\ob\ob.hpp"
#include "..\ke\ke.hpp"
#include "ob.hpp"
#include "ke.hpp"


#define OPEN_PACKET_PATTERN 0xbeaa0251
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ke/apc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

#include "ke.hpp"
#include "..\hal\hal.hpp"
#include "..\rtl\rtl.hpp"
#include "hal.hpp"
#include "rtl.hpp"


static BOOLEAN KiInsertQueueApc(PKAPC Apc, KPRIORITY Increment)
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ke/bug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/

#include "ke.hpp"
#include "..\hal\halp.hpp"
#include "..\dbg\dbg.hpp"
#include "halp.hpp"
#include "dbg.hpp"


EXPORTNUM(95) VOID XBOXAPI KeBugCheck
Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ke/dpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*/

#include "ke.hpp"
#include "..\ki\ki.hpp"
#include "..\hal\hal.hpp"
#include "ki.hpp"
#include "hal.hpp"


// Source: Cxbx-Reloaded
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ke/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#include "ke.hpp"
#include "..\rtl\rtl.hpp"
#include "rtl.hpp"


EXPORTNUM(108) VOID XBOXAPI KeInitializeEvent
Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/ke/interrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* ergo720 Copyright (c) 2024
*/

#include "..\ki\ki.hpp"
#include "..\hal\halp.hpp"
#include "..\hal\hal.hpp"
#include "ki.hpp"
#include "halp.hpp"
#include "hal.hpp"
#include <string.h>
#include <assert.h>

Expand Down
6 changes: 3 additions & 3 deletions nboxkrnl/ke/irql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/

#include "ke.hpp"
#include "..\ki\ki.hpp"
#include "..\hal\hal.hpp"
#include "..\hal\halp.hpp"
#include "ki.hpp"
#include "hal.hpp"
#include "halp.hpp"


EXPORTNUM(103) KIRQL XBOXAPI KeGetCurrentIrql()
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ke/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#pragma once

#include "..\ki\ki.hpp"
#include "ki.hpp"
#include "..\kernel.hpp"
#include <assert.h>

Expand Down
4 changes: 2 additions & 2 deletions nboxkrnl/ke/mutant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* ergo720 Copyright (c) 2023
*/

#include "..\ki\ki.hpp"
#include "..\ex\ex.hpp"
#include "ki.hpp"
#include "ex.hpp"


EXPORTNUM(110) VOID XBOXAPI KeInitializeMutant
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ke/semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "ke.hpp"
#include "..\kernel.hpp"
#include "..\ex\ex.hpp"
#include "ex.hpp"


// Source: Cxbx-Reloaded
Expand Down
12 changes: 6 additions & 6 deletions nboxkrnl/ke/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*/

#include "ke.hpp"
#include "..\ki\ki.hpp"
#include "ki.hpp"
#include "..\kernel.hpp"
#include "..\mm\mm.hpp"
#include "..\hal\halp.hpp"
#include "..\rtl\rtl.hpp"
#include "..\ps\ps.hpp"
#include "..\hal\hal.hpp"
#include "mm.hpp"
#include "halp.hpp"
#include "rtl.hpp"
#include "ps.hpp"
#include "hal.hpp"
#include <string.h>
#include <assert.h>

Expand Down
Loading

0 comments on commit e64bd06

Please sign in to comment.