Simon Glass | 8a3e035 | 2012-02-15 15:51:16 -0800 | [diff] [blame] | 1 | /* |
| 2 | * decls for symbols defined in the linker script |
| 3 | * |
| 4 | * Copyright (c) 2012 The Chromium OS Authors. |
| 5 | * |
| 6 | * Licensed under the GPL-2 or later. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __SANDBOX_SECTIONS_H |
| 10 | #define __SANDBOX_SECTIONS_H |
| 11 | |
Simon Glass | 9bce37c | 2013-03-05 14:39:37 +0000 | [diff] [blame] | 12 | #include <asm-generic/sections.h> |
| 13 | |
Simon Glass | 64367c8 | 2013-12-03 16:43:23 -0700 | [diff] [blame] | 14 | struct sandbox_cmdline_option; |
Simon Glass | 8a3e035 | 2012-02-15 15:51:16 -0800 | [diff] [blame] | 15 | |
Simon Glass | 64367c8 | 2013-12-03 16:43:23 -0700 | [diff] [blame] | 16 | extern struct sandbox_cmdline_option *__u_boot_sandbox_option_start[], |
Simon Glass | 8a3e035 | 2012-02-15 15:51:16 -0800 | [diff] [blame] | 17 | *__u_boot_sandbox_option_end[]; |
| 18 | |
| 19 | static inline size_t __u_boot_sandbox_option_count(void) |
| 20 | { |
| 21 | return __u_boot_sandbox_option_end - __u_boot_sandbox_option_start; |
| 22 | } |
| 23 | |
| 24 | #endif |