Ronald G. Minnich | e0e784a | 2014-11-26 19:25:47 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 17 | * Foundation, Inc. |
Ronald G. Minnich | e0e784a | 2014-11-26 19:25:47 +0000 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef ARCH_EARLY_VARIABLES_H |
| 21 | #define ARCH_EARLY_VARIABLES_H |
| 22 | |
Ronald G. Minnich | e0e784a | 2014-11-26 19:25:47 +0000 | [diff] [blame] | 23 | #define CAR_GLOBAL |
| 24 | |
| 25 | #define CAR_MIGRATE(migrate_fn_) |
| 26 | static inline void *car_get_var_ptr(void *var) { return var; } |
| 27 | #define car_get_var(var) (var) |
Kyösti Mälkki | e455425 | 2014-12-31 18:34:59 +0200 | [diff] [blame] | 28 | #define car_sync_var(var) (var) |
Ronald G. Minnich | e0e784a | 2014-11-26 19:25:47 +0000 | [diff] [blame] | 29 | #define car_set_var(var, val) do { (var) = (val); } while (0) |
Ronald G. Minnich | e0e784a | 2014-11-26 19:25:47 +0000 | [diff] [blame] | 30 | |
| 31 | #endif |