From dff1803cfbec3775fff1b9c34cc707c05494dc3b Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Wed, 3 Dec 2014 11:35:52 +0100 Subject: SPARC: optimize IRQ enable & disable * Coding style cleanups. * Use OS reserved trap 0x89 for IRQ Disable * Use OS reserved trap 0x8A for IRQ Enable * Add to SPARC CPU supplement documentation This will result in faster Disable/Enable code since the system trap handler does not need to decode which function the user wants. Besides the IRQ disable/enabled can now be inline which avoids the caller to take into account that o0-o7+g1-g4 registers are destroyed by trap handler. It was also possible to reduce the interrupt trap handler by five instructions due to this. --- c/src/lib/libcpu/sparc/syscall/syscall.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'c/src/lib/libcpu/sparc/syscall/syscall.h') diff --git a/c/src/lib/libcpu/sparc/syscall/syscall.h b/c/src/lib/libcpu/sparc/syscall/syscall.h index 9af3560267..2f20886840 100644 --- a/c/src/lib/libcpu/sparc/syscall/syscall.h +++ b/c/src/lib/libcpu/sparc/syscall/syscall.h @@ -1,3 +1 @@ #define SYS_exit 1 -#define SYS_irqdis 2 -#define SYS_irqen 3 -- cgit v1.2.3