Skip to content

Commit

Permalink
Added some Linux compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
buu342 authored Aug 15, 2020
1 parent df27467 commit d9c66d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Examples/1. Hello World/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Handles the boot process of the ROM.


/*********************************
Threads
Thread Pointers
*********************************/

OSThread idleThread;
Expand Down
4 changes: 2 additions & 2 deletions Examples/1. Hello World/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ APP = $(TARGETS:.n64=.out)
ifeq ($(DEBUG_MODE), 0)
CODEOBJECTS = $(CODECFILES:.c=.o)
OPTIMIZER = -O2
LCDEFS = -D_FINALROM -DNDEBUG -DF3DEX_GBI_2
LCDEFS = -D_FINALROM -DNDEBUG -DF3DEX_GBI_2 -DNOT_SPEC
N64LIB = -lgultra_rom
MAKEROMFLAGS =
else
CODEOBJECTS = $(CODECFILES:.c=.o) $(DEBUGFILES:.c=.o)
OPTIMIZER = -g
LCDEFS = -DDEBUG -DF3DEX_GBI_2
LCDEFS = -DDEBUG -DF3DEX_GBI_2 -DNOT_SPEC
N64LIB = -lgultra_d
MAKEROMFLAGS = -d
endif
Expand Down
2 changes: 1 addition & 1 deletion Examples/1. Hello World/makefile.linux
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
################################################################
# THIS MAKEFILE IS MEANT FOR THE N64 SDK FOR LINUX #
# BY CRASHOVERIDE. IF USING Partner-N64 SDK PLEASE #
# USE makefile.dos!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #
# USE THE OTHER makefile!!!!!!!!!!!!!!!!!!!!!!!!!! #
################################################################

################################################################
Expand Down
8 changes: 5 additions & 3 deletions Examples/1. Hello World/osconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
#define MAINSTACKSIZE 0x2000

// Stack pointers
extern u64 bootStack[BOOTSTACKSIZE/sizeof(u64)];
extern u64 idleThreadStack[IDLESTACKSIZE/sizeof(u64)];
extern u64 mainThreadStack[MAINSTACKSIZE/sizeof(u64)];
#ifdef NOT_SPEC // For Linux Compatibility
extern u64 bootStack[BOOTSTACKSIZE/sizeof(u64)];
extern u64 idleThreadStack[IDLESTACKSIZE/sizeof(u64)];
extern u64 mainThreadStack[MAINSTACKSIZE/sizeof(u64)];
#endif

#endif

0 comments on commit d9c66d7

Please sign in to comment.