[OpenBIOS] [PATCHv2 1/4] SPARC32: minor tidy-up for boot.c
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sun Feb 22 22:27:30 CET 2015
This commit doesn't have any functional changes but removes some debugging
printks accidentally included by a previous commit, plus adds a +1 offset
back onto the size of tail prommap entry to ensure that it is correctly
aligned.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/arch/sparc32/boot.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/openbios-devel/arch/sparc32/boot.c b/openbios-devel/arch/sparc32/boot.c
index c309891..49ec4cf 100644
--- a/openbios-devel/arch/sparc32/boot.c
+++ b/openbios-devel/arch/sparc32/boot.c
@@ -147,9 +147,6 @@ static void setup_romvec(void)
(**pp).start_adr = (char *)intprop_ptr[1];
(**pp).num_bytes = intprop_ptr[2];
- printk("start_adr: %x\n", (int)(**pp).start_adr);
- printk("num_bytes: %x\n", (**pp).num_bytes);
-
intprop_ptr += 3;
}
@@ -180,7 +177,7 @@ static void setup_romvec(void)
(**pp).num_bytes = (intprop_ptr[4] + intprop_ptr[5]) - (intprop_ptr[1] + intprop_ptr[2]);
} else {
/* Tail (size from top of virtual memory) */
- (**pp).num_bytes = 0xffffffffUL - (intprop_ptr[1] + intprop_ptr[2]);
+ (**pp).num_bytes = 0xffffffffUL - (intprop_ptr[1] + intprop_ptr[2]) + 1;
}
intprop_ptr += 3;
--
1.7.10.4
More information about the OpenBIOS
mailing list