Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 7 | |
| 8 | /* |
| 9 | * cleanup_before_linux() is called just before we call linux |
| 10 | * it prepares the processor for linux |
| 11 | * |
| 12 | * we disable interrupt and caches. |
| 13 | */ |
| 14 | int cleanup_before_linux(void) |
| 15 | { |
| 16 | disable_interrupts(); |
| 17 | |
Rick Chen | 842d580 | 2018-11-07 09:34:06 +0800 | [diff] [blame^] | 18 | cache_flush(); |
Bin Meng | 8a8694d | 2018-09-26 06:55:21 -0700 | [diff] [blame] | 19 | |
| 20 | return 0; |
| 21 | } |