Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ee/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ include $(PS2SDKSRC)/ee/Rules.lib.make
include $(PS2SDKSRC)/ee/Rules.make
include $(PS2SDKSRC)/ee/Rules.release

$(KERNEL_OBJS:%=$(EE_OBJS_DIR)%): $(EE_SRC_DIR)kernel.S
$(KERNEL_OBJS:%=$(EE_OBJS_DIR)%): $(EE_SRC_DIR)kernel.c
$(DIR_GUARD)
$(EE_C_COMPILE) -DF_$(*:$(EE_OBJS_DIR)%=%) $< -c -o $@

Expand Down Expand Up @@ -331,7 +331,7 @@ $(EE_OBJS_DIR)osdsrc_bin.o: $(EE_OBJS_DIR)osdsrc_bin.c
$(DIR_GUARD)
$(EE_C_COMPILE) -I$(PS2SDKSRC)/ee/rpc/cdvd/include $< -c -o $@

$(EE_OBJS_DIR)libosd_syscalls.o: $(EE_SRC_DIR)libosd_syscalls.S
$(EE_OBJS_DIR)libosd_syscalls.o: $(EE_SRC_DIR)libosd_syscalls.c
$(DIR_GUARD)
$(EE_C_COMPILE) -I$(PS2SDKSRC)/ee/rpc/cdvd/include $< -c -o $@

Expand Down
30 changes: 30 additions & 0 deletions ee/kernel/src/eenull/src/eenull.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
*/

// Will be executed in user mode, but with interrupts disabled.
// Set stack address to 0x00081fc0. This is meant to be the replacement for the built-in dispatcher,
// which also shares the same stack.

__asm__
(
"\t" ".set push" "\n"
"\t" ".set noreorder" "\n"

"\t" ".globl UModeCallbackDispatcher" "\n"
"\t" ".ent UModeCallbackDispatcher" "\n"
"\t" "UModeCallbackDispatcher:" "\n"
"\t" "\t" "lui $sp, 0x0008" "\n"
"\t" "\t" "jalr $v1" "\n"
"\t" "\t" "addiu $sp, $sp, 0x1fc0" "\n"
"\t" "\t" "addiu $v1, $zero, -8" "\n"
"\t" "\t" "syscall" "\n"
"\t" ".end UModeCallbackDispatcher" "\n"
Comment on lines +19 to +27
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this more readable?


"\t" ".set pop" "\n"
);
26 changes: 0 additions & 26 deletions ee/kernel/src/eenull/src/eenull.s

This file was deleted.

Loading
Loading