Minor comment / code layout improvement to romlayout.S.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 22 Jan 2011 15:53:48 +0000 (10:53 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 22 Jan 2011 15:53:48 +0000 (10:53 -0500)
src/romlayout.S

index 7a14a7f639b4c8d14492257bab2847691bf923e5..3dfec781299b821316241101381f8fe5c74d68b9 100644 (file)
@@ -427,6 +427,18 @@ post32:
  * Interrupt entry points
  ****************************************************************/
 
+        // Main entry point for interrupts without args
+        DECLFUNC irqentry
+irqentry:
+        ENTRY_ST
+        iretw
+
+        // Main entry point for interrupts with args
+        DECLFUNC irqentryarg
+irqentryarg:
+        ENTRY_ARG_ST
+        iretw
+
         // Define an entry point for an interrupt (no args passed).
         .macro IRQ_ENTRY num
         .global entry_\num
@@ -435,6 +447,11 @@ post32:
         jmp irqentry
         .endm
 
+        .macro DECL_IRQ_ENTRY num
+        DECLFUNC entry_\num
+        IRQ_ENTRY \num
+        .endm
+
         // Define an entry point for an interrupt (can read/modify args).
         .macro IRQ_ENTRY_ARG num
         .global entry_\num
@@ -443,28 +460,12 @@ post32:
         jmp irqentryarg
         .endm
 
-        // Macros that put each handler into its own section
-        .macro DECL_IRQ_ENTRY num
-        DECLFUNC entry_\num
-        IRQ_ENTRY \num
-        .endm
         .macro DECL_IRQ_ENTRY_ARG num
         DECLFUNC entry_\num
         IRQ_ENTRY_ARG \num
         .endm
 
-        // Main entry point for interrupts without args
-        DECLFUNC irqentry
-irqentry:
-        ENTRY_ST
-        iretw
-
-        // Main entry point for interrupts with args
-        DECLFUNC irqentryarg
-irqentryarg:
-        ENTRY_ARG_ST
-        iretw
-
+        // Various entry points (that don't require a fixed location).
         DECL_IRQ_ENTRY_ARG 13
         DECL_IRQ_ENTRY 76
         DECL_IRQ_ENTRY 70