blob: 898e8677b7aa13c678d60ab6a9f04dbfb8382fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*/
#ifndef CHROMEOS_BOOT_KERNEL_H
#define CHROMEOS_BOOT_KERNEL_H
#include <chromeos/crossystem_data.h>
#include <vboot_api.h>
/**
* This boots kernel specified in [kparmas].
*
* @param kparams kparams returned from VbSelectAndLoadKernel()
* @param cdata crossystem data pointer
* @return non-zero if it fails to boot; otherwise it never returns
* to its caller
*/
int boot_kernel(VbSelectAndLoadKernelParams *kparams, crossystem_data_t *cdata);
#endif /* CHROMEOS_BOOT_KERNEL_H */
|