| /* Boot entry point for a compressed MN10300 kernel |
| * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
| * Written by David Howells (dhowells@redhat.com) |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public Licence |
| * as published by the Free Software Foundation; either version |
| * 2 of the Licence, or (at your option) any later version. |
| #include <linux/linkage.h> |
| #include <asm/cpu-regs.h> |
| # first save off parameters from bootloader |
| mov decomp_stack+0x2000-4,a0 |
| # invalidate and enable both of the caches |
| movhu d0,(a0) # turn off first |
| mov CHCTR_ICINV|CHCTR_DCINV,d0 |
| btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy |
| mov CHCTR_ICEN|CHCTR_DCEN|CHCTR_DCWTMD,d0 # writethru dcache |
| call decompress_kernel[],0 |
| btst CHCTR_ICBUSY|CHCTR_DCBUSY,d0 # wait till not busy |
| mov CONFIG_KERNEL_TEXT_ADDRESS,a0 |