Index: Makefile
===================================================================
--- Makefile	(revision 2988616b5cdf842d27e95f78517fa3eaff7177b5)
+++ Makefile	(revision a88ab79527d0ad8172c9cf4cde9461f03f3a3a3c)
@@ -48,4 +48,8 @@
 endif
 
+ifeq ($(CONFIG_BAT),y)
+	DEFS += -DCONFIG_BAT
+endif
+
 .PHONY: all build config distclean arch_distclean clean kernel uspace clean_kernel clean_uspace distclean_kernel distclean_uspace
 
Index: arch/ppc32/loader/asm.S
===================================================================
--- arch/ppc32/loader/asm.S	(revision 2988616b5cdf842d27e95f78517fa3eaff7177b5)
+++ arch/ppc32/loader/asm.S	(revision a88ab79527d0ad8172c9cf4cde9461f03f3a3a3c)
@@ -208,5 +208,6 @@
 	li r29, 8
 	mtctr r29
-	li r30, 0x4000
+	lis r30, 0x4000
+	ori r30, r30, 8
 	
 	seg_fill_kernel:
