mbr: wire up dymamic swap detection (partition type 0x7F)
authorAlan Cox <alan@linux.intel.com>
Sun, 6 May 2018 22:29:36 +0000 (23:29 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 6 May 2018 22:29:36 +0000 (23:29 +0100)
Kernel/dev/mbr.c
Kernel/include/kernel.h

index 28f1ccb..88b6c96 100644 (file)
@@ -87,7 +87,7 @@ void mbr_parse(char letter)
                    kprintf("hd%c%d ", letter, next);
 #ifdef CONFIG_DYNAMIC_SWAP
                    if(t == FUZIX_SWAP)
-                       platform_swap_found(next - 1);
+                       platform_swap_found(letter, next);
 #endif
            }
        }
index dcf94cc..1b852ee 100644 (file)
@@ -1037,11 +1037,12 @@ extern uint8_t platform_param(char *p);
 extern void platform_switchout(void);
 extern void platform_interrupt(void);
 
+extern void platform_swap_found(uint8_t part, uint8_t letter);
+
 extern irqflags_t __hard_di(void);
 extern void __hard_irqrestore(irqflags_t f);
 extern void __hard_ei(void);
 
-
 #ifndef CONFIG_SOFT_IRQ
 #define di __hard_di
 #define irqrestore __hard_irqrestore