common.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. /*
  2. * (C) Copyright 2000-2009
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __COMMON_H_
  8. #define __COMMON_H_ 1
  9. #ifndef __ASSEMBLY__ /* put C only stuff in this section */
  10. typedef unsigned char uchar;
  11. typedef volatile unsigned long vu_long;
  12. typedef volatile unsigned short vu_short;
  13. typedef volatile unsigned char vu_char;
  14. /* Allow sharing constants with type modifiers between C and assembly. */
  15. #define _AC(X, Y) (X##Y)
  16. #include <config.h>
  17. #include <errno.h>
  18. #include <time.h>
  19. #include <asm-offsets.h>
  20. #include <linux/bitops.h>
  21. #include <linux/bug.h>
  22. #include <linux/delay.h>
  23. #include <linux/types.h>
  24. #include <linux/printk.h>
  25. #include <linux/string.h>
  26. #include <linux/stringify.h>
  27. #include <asm/ptrace.h>
  28. #include <stdarg.h>
  29. #include <stdio.h>
  30. #include <linux/kernel.h>
  31. #include <part.h>
  32. #include <flash.h>
  33. #include <image.h>
  34. /* Bring in printf format macros if inttypes.h is included */
  35. #define __STDC_FORMAT_MACROS
  36. #ifdef __LP64__
  37. #define CONFIG_SYS_SUPPORT_64BIT_DATA
  38. #endif
  39. #include <log.h>
  40. typedef void (interrupt_handler_t)(void *);
  41. #include <asm/u-boot.h> /* boot information for Linux kernel */
  42. #include <asm/global_data.h> /* global data used for startup functions */
  43. #if defined(CONFIG_ENV_IS_EMBEDDED)
  44. #define TOTAL_MALLOC_LEN CONFIG_SYS_MALLOC_LEN
  45. #elif ( ((CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) < CONFIG_SYS_MONITOR_BASE) || \
  46. (CONFIG_ENV_ADDR >= (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)) ) || \
  47. defined(CONFIG_ENV_IS_IN_NVRAM)
  48. #define TOTAL_MALLOC_LEN (CONFIG_SYS_MALLOC_LEN + CONFIG_ENV_SIZE)
  49. #else
  50. #define TOTAL_MALLOC_LEN CONFIG_SYS_MALLOC_LEN
  51. #endif
  52. /* startup functions, used in:
  53. * common/board_f.c
  54. */
  55. #include <init.h>
  56. /*
  57. * Function Prototypes
  58. */
  59. void hang (void) __attribute__ ((noreturn));
  60. int cpu_init(void);
  61. #include <display_options.h>
  62. /* common/main.c */
  63. void main_loop (void);
  64. int run_command(const char *cmd, int flag);
  65. int run_command_repeatable(const char *cmd, int flag);
  66. /**
  67. * Run a list of commands separated by ; or even \0
  68. *
  69. * Note that if 'len' is not -1, then the command does not need to be nul
  70. * terminated, Memory will be allocated for the command in that case.
  71. *
  72. * @param cmd List of commands to run, each separated bu semicolon
  73. * @param len Length of commands excluding terminator if known (-1 if not)
  74. * @param flag Execution flags (CMD_FLAG_...)
  75. * @return 0 on success, or != 0 on error.
  76. */
  77. int run_command_list(const char *cmd, int len, int flag);
  78. /* arch/$(ARCH)/lib/board.c */
  79. void board_init_r(gd_t *, ulong) __attribute__ ((noreturn));
  80. /**
  81. * ulong board_init_f_alloc_reserve - allocate reserved area
  82. *
  83. * This function is called by each architecture very early in the start-up
  84. * code to allow the C runtime to reserve space on the stack for writable
  85. * 'globals' such as GD and the malloc arena.
  86. *
  87. * @top: top of the reserve area, growing down.
  88. * @return: bottom of reserved area
  89. */
  90. ulong board_init_f_alloc_reserve(ulong top);
  91. /**
  92. * board_init_f_init_reserve - initialize the reserved area(s)
  93. *
  94. * This function is called once the C runtime has allocated the reserved
  95. * area on the stack. It must initialize the GD at the base of that area.
  96. *
  97. * @base: top from which reservation was done
  98. */
  99. void board_init_f_init_reserve(ulong base);
  100. /**
  101. * arch_setup_gd() - Set up the global_data pointer
  102. *
  103. * This pointer is special in some architectures and cannot easily be assigned
  104. * to. For example on x86 it is implemented by adding a specific record to its
  105. * Global Descriptor Table! So we we provide a function to carry out this task.
  106. * For most architectures this can simply be:
  107. *
  108. * gd = gd_ptr;
  109. *
  110. * @gd_ptr: Pointer to global data
  111. */
  112. void arch_setup_gd(gd_t *gd_ptr);
  113. int checkboard(void);
  114. int show_board_info(void);
  115. int last_stage_init(void);
  116. extern ulong monitor_flash_len;
  117. int mac_read_from_eeprom(void);
  118. extern u8 __dtb_dt_begin[]; /* embedded device tree blob */
  119. extern u8 __dtb_dt_spl_begin[]; /* embedded device tree blob for SPL/TPL */
  120. int set_cpu_clk_info(void);
  121. int mdm_init(void);
  122. int update_flash_size(int flash_size);
  123. int arch_early_init_r(void);
  124. /**
  125. * Show the DRAM size in a board-specific way
  126. *
  127. * This is used by boards to display DRAM information in their own way.
  128. *
  129. * @param size Size of DRAM (which should be displayed along with other info)
  130. */
  131. void board_show_dram(phys_size_t size);
  132. /**
  133. * arch_fixup_fdt() - Write arch-specific information to fdt
  134. *
  135. * Defined in arch/$(ARCH)/lib/bootm-fdt.c
  136. *
  137. * @blob: FDT blob to write to
  138. * @return 0 if ok, or -ve FDT_ERR_... on failure
  139. */
  140. int arch_fixup_fdt(void *blob);
  141. /* common/flash.c */
  142. void flash_perror (int);
  143. /* common/cmd_source.c */
  144. int source (ulong addr, const char *fit_uname);
  145. extern ulong load_addr; /* Default Load Address */
  146. extern ulong save_addr; /* Default Save Address */
  147. extern ulong save_size; /* Default Save Size */
  148. /* common/cmd_net.c */
  149. int do_tftpb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
  150. /* common/cmd_fat.c */
  151. int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
  152. /* common/cmd_ext2.c */
  153. int do_ext2load(cmd_tbl_t *, int, int, char * const []);
  154. /* common/cmd_nvedit.c */
  155. int env_init (void);
  156. void env_relocate (void);
  157. int envmatch (uchar *, int);
  158. /**
  159. * env_get() - Look up the value of an environment variable
  160. *
  161. * In U-Boot proper this can be called before relocation (which is when the
  162. * environment is loaded from storage, i.e. GD_FLG_ENV_READY is 0). In that
  163. * case this function calls env_get_f().
  164. *
  165. * @varname: Variable to look up
  166. * @return value of variable, or NULL if not found
  167. */
  168. char *env_get(const char *varname);
  169. /**
  170. * env_get_f() - Look up the value of an environment variable (early)
  171. *
  172. * This function is called from env_get() if the environment has not been
  173. * loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will
  174. * support reading the value (slowly) and some will not.
  175. *
  176. * @varname: Variable to look up
  177. * @return value of variable, or NULL if not found
  178. */
  179. int env_get_f(const char *name, char *buf, unsigned len);
  180. /**
  181. * env_get_ulong() - Return an environment variable as an integer value
  182. *
  183. * Most U-Boot environment variables store hex values. For those which store
  184. * (e.g.) base-10 integers, this function can be used to read the value.
  185. *
  186. * @name: Variable to look up
  187. * @base: Base to use (e.g. 10 for base 10, 2 for binary)
  188. * @default_val: Default value to return if no value is found
  189. * @return the value found, or @default_val if none
  190. */
  191. ulong env_get_ulong(const char *name, int base, ulong default_val);
  192. /**
  193. * env_get_hex() - Return an environment variable as a hex value
  194. *
  195. * Decode an environment as a hex number (it may or may not have a 0x
  196. * prefix). If the environment variable cannot be found, or does not start
  197. * with hex digits, the default value is returned.
  198. *
  199. * @varname: Variable to decode
  200. * @default_val: Value to return on error
  201. */
  202. ulong env_get_hex(const char *varname, ulong default_val);
  203. /*
  204. * Read an environment variable as a boolean
  205. * Return -1 if variable does not exist (default to true)
  206. */
  207. int env_get_yesno(const char *var);
  208. /**
  209. * env_set() - set an environment variable
  210. *
  211. * This sets or deletes the value of an environment variable. For setting the
  212. * value the variable is created if it does not already exist.
  213. *
  214. * @varname: Variable to adjust
  215. * @value: Value to set for the variable, or NULL or "" to delete the variable
  216. * @return 0 if OK, 1 on error
  217. */
  218. int env_set(const char *varname, const char *value);
  219. /**
  220. * env_set_ulong() - set an environment variable to an integer
  221. *
  222. * @varname: Variable to adjust
  223. * @value: Value to set for the variable (will be converted to a string)
  224. * @return 0 if OK, 1 on error
  225. */
  226. int env_set_ulong(const char *varname, ulong value);
  227. /**
  228. * env_set_hex() - set an environment variable to a hex value
  229. *
  230. * @varname: Variable to adjust
  231. * @value: Value to set for the variable (will be converted to a hex string)
  232. * @return 0 if OK, 1 on error
  233. */
  234. int env_set_hex(const char *varname, ulong value);
  235. /**
  236. * env_set_addr - Set an environment variable to an address in hex
  237. *
  238. * @varname: Environment variable to set
  239. * @addr: Value to set it to
  240. * @return 0 if ok, 1 on error
  241. */
  242. static inline int env_set_addr(const char *varname, const void *addr)
  243. {
  244. return env_set_hex(varname, (ulong)addr);
  245. }
  246. #ifdef CONFIG_AUTO_COMPLETE
  247. int env_complete(char *var, int maxv, char *cmdv[], int maxsz, char *buf);
  248. #endif
  249. int get_env_id (void);
  250. void pci_init (void);
  251. void pci_init_board(void);
  252. int misc_init_r (void);
  253. #if defined(CONFIG_VID)
  254. int init_func_vid(void);
  255. #endif
  256. /* common/exports.c */
  257. void jumptable_init(void);
  258. /* common/kallsysm.c */
  259. const char *symbol_lookup(unsigned long addr, unsigned long *caddr);
  260. /* common/memsize.c */
  261. long get_ram_size (long *, long);
  262. phys_size_t get_effective_memsize(void);
  263. /* $(BOARD)/$(BOARD).c */
  264. void reset_phy (void);
  265. void fdc_hw_init (void);
  266. /* $(BOARD)/eeprom.c */
  267. #ifdef CONFIG_CMD_EEPROM
  268. void eeprom_init (int bus);
  269. int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt);
  270. int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt);
  271. #else
  272. /*
  273. * Some EEPROM code is depecated because it used the legacy I2C interface. Add
  274. * some macros here so we don't have to touch every one of those uses
  275. */
  276. #define eeprom_init(bus)
  277. #define eeprom_read(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
  278. #define eeprom_write(dev_addr, offset, buffer, cnt) ((void)-ENOSYS)
  279. #endif
  280. /*
  281. * Set this up regardless of board
  282. * type, to prevent errors.
  283. */
  284. #if defined(CONFIG_SPI) || !defined(CONFIG_SYS_I2C_EEPROM_ADDR)
  285. # define CONFIG_SYS_DEF_EEPROM_ADDR 0
  286. #else
  287. #if !defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
  288. # define CONFIG_SYS_DEF_EEPROM_ADDR CONFIG_SYS_I2C_EEPROM_ADDR
  289. #endif
  290. #endif /* CONFIG_SPI || !defined(CONFIG_SYS_I2C_EEPROM_ADDR) */
  291. #if defined(CONFIG_SPI)
  292. extern void spi_init_f (void);
  293. extern void spi_init_r (void);
  294. extern ssize_t spi_read (uchar *, int, uchar *, int);
  295. extern ssize_t spi_write (uchar *, int, uchar *, int);
  296. #endif
  297. /* $(BOARD)/$(BOARD).c */
  298. int board_early_init_f (void);
  299. int board_fix_fdt (void *rw_fdt_blob); /* manipulate the U-Boot fdt before its relocation */
  300. int board_late_init (void);
  301. int board_postclk_init (void); /* after clocks/timebase, before env/serial */
  302. int board_early_init_r (void);
  303. #if defined(CONFIG_SYS_DRAM_TEST)
  304. int testdram(void);
  305. #endif /* CONFIG_SYS_DRAM_TEST */
  306. /* $(CPU)/start.S */
  307. int icache_status (void);
  308. void icache_enable (void);
  309. void icache_disable(void);
  310. int dcache_status (void);
  311. void dcache_enable (void);
  312. void dcache_disable(void);
  313. void mmu_disable(void);
  314. #if defined(CONFIG_ARM)
  315. void relocate_code(ulong);
  316. #else
  317. void relocate_code(ulong, gd_t *, ulong) __attribute__ ((noreturn));
  318. #endif
  319. ulong get_endaddr (void);
  320. void trap_init (ulong);
  321. /* $(CPU)/cpu.c */
  322. static inline int cpumask_next(int cpu, unsigned int mask)
  323. {
  324. for (cpu++; !((1 << cpu) & mask); cpu++)
  325. ;
  326. return cpu;
  327. }
  328. #define for_each_cpu(iter, cpu, num_cpus, mask) \
  329. for (iter = 0, cpu = cpumask_next(-1, mask); \
  330. iter < num_cpus; \
  331. iter++, cpu = cpumask_next(cpu, mask)) \
  332. int cpu_numcores (void);
  333. int cpu_num_dspcores(void);
  334. u32 cpu_mask (void);
  335. u32 cpu_dsp_mask(void);
  336. int is_core_valid (unsigned int);
  337. void s_init(void);
  338. int checkcpu (void);
  339. int checkicache (void);
  340. int checkdcache (void);
  341. void upmconfig (unsigned int, unsigned int *, unsigned int);
  342. ulong get_tbclk (void);
  343. void reset_misc (void);
  344. void reset_cpu (ulong addr);
  345. void ft_cpu_setup(void *blob, bd_t *bd);
  346. void ft_pci_setup(void *blob, bd_t *bd);
  347. void smp_set_core_boot_addr(unsigned long addr, int corenr);
  348. void smp_kick_all_cpus(void);
  349. /* $(CPU)/serial.c */
  350. int serial_init (void);
  351. void serial_setbrg (void);
  352. void serial_putc (const char);
  353. void serial_putc_raw(const char);
  354. void serial_puts (const char *);
  355. int serial_getc (void);
  356. int serial_tstc (void);
  357. /* $(CPU)/speed.c */
  358. int get_clocks (void);
  359. ulong get_bus_freq (ulong);
  360. int get_serial_clock(void);
  361. int cpu_init_r (void);
  362. /* $(CPU)/interrupts.c */
  363. int interrupt_init (void);
  364. void timer_interrupt (struct pt_regs *);
  365. void external_interrupt (struct pt_regs *);
  366. void irq_install_handler(int, interrupt_handler_t *, void *);
  367. void irq_free_handler (int);
  368. void reset_timer (void);
  369. /* Return value of monotonic microsecond timer */
  370. unsigned long timer_get_us(void);
  371. void enable_interrupts (void);
  372. int disable_interrupts (void);
  373. /* $(CPU)/.../commproc.c */
  374. int dpram_init (void);
  375. uint dpram_base(void);
  376. uint dpram_base_align(uint align);
  377. uint dpram_alloc(uint size);
  378. uint dpram_alloc_align(uint size,uint align);
  379. void bootcount_store (ulong);
  380. ulong bootcount_load (void);
  381. #define BOOTCOUNT_MAGIC 0xB001C041
  382. /* $(CPU)/.../<eth> */
  383. void mii_init (void);
  384. /* $(CPU)/.../lcd.c */
  385. ulong lcd_setmem (ulong);
  386. /* $(CPU)/.../video.c */
  387. ulong video_setmem (ulong);
  388. /* arch/$(ARCH)/lib/cache.c */
  389. void enable_caches(void);
  390. void flush_cache (unsigned long, unsigned long);
  391. void flush_dcache_all(void);
  392. void flush_dcache_range(unsigned long start, unsigned long stop);
  393. void invalidate_dcache_range(unsigned long start, unsigned long stop);
  394. void invalidate_dcache_all(void);
  395. void invalidate_icache_all(void);
  396. enum {
  397. /* Disable caches (else flush caches but leave them active) */
  398. CBL_DISABLE_CACHES = 1 << 0,
  399. CBL_SHOW_BOOTSTAGE_REPORT = 1 << 1,
  400. CBL_ALL = 3,
  401. };
  402. /**
  403. * Clean up ready for linux
  404. *
  405. * @param flags Flags to control what is done
  406. */
  407. int cleanup_before_linux_select(int flags);
  408. /* arch/$(ARCH)/lib/ticks.S */
  409. uint64_t get_ticks(void);
  410. void wait_ticks (unsigned long);
  411. /* arch/$(ARCH)/lib/time.c */
  412. ulong usec2ticks (unsigned long usec);
  413. ulong ticks2usec (unsigned long ticks);
  414. /* lib/gunzip.c */
  415. int gzip_parse_header(const unsigned char *src, unsigned long len);
  416. int gunzip(void *, int, unsigned char *, unsigned long *);
  417. int zunzip(void *dst, int dstlen, unsigned char *src, unsigned long *lenp,
  418. int stoponerr, int offset);
  419. /**
  420. * gzwrite progress indicators: defined weak to allow board-specific
  421. * overrides:
  422. *
  423. * gzwrite_progress_init called on startup
  424. * gzwrite_progress called during decompress/write loop
  425. * gzwrite_progress_finish called at end of loop to
  426. * indicate success (retcode=0) or failure
  427. */
  428. void gzwrite_progress_init(u64 expected_size);
  429. void gzwrite_progress(int iteration,
  430. u64 bytes_written,
  431. u64 total_bytes);
  432. void gzwrite_progress_finish(int retcode,
  433. u64 totalwritten,
  434. u64 totalsize,
  435. u32 expected_crc,
  436. u32 calculated_crc);
  437. /**
  438. * decompress and write gzipped image from memory to block device
  439. *
  440. * @param src compressed image address
  441. * @param len compressed image length in bytes
  442. * @param dev block device descriptor
  443. * @param szwritebuf bytes per write (pad to erase size)
  444. * @param startoffs offset in bytes of first write
  445. * @param szexpected expected uncompressed length
  446. * may be zero to use gzip trailer
  447. * for files under 4GiB
  448. */
  449. int gzwrite(unsigned char *src, int len,
  450. struct blk_desc *dev,
  451. unsigned long szwritebuf,
  452. u64 startoffs,
  453. u64 szexpected);
  454. /* lib/lz4_wrapper.c */
  455. int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn);
  456. /* lib/qsort.c */
  457. void qsort(void *base, size_t nmemb, size_t size,
  458. int(*compar)(const void *, const void *));
  459. int strcmp_compar(const void *, const void *);
  460. /* lib/uuid.c */
  461. #include <uuid.h>
  462. /* lib/vsprintf.c */
  463. #include <vsprintf.h>
  464. /* lib/strmhz.c */
  465. char * strmhz(char *buf, unsigned long hz);
  466. /* lib/crc32.c */
  467. #include <u-boot/crc.h>
  468. /* lib/rand.c */
  469. #define RAND_MAX -1U
  470. void srand(unsigned int seed);
  471. unsigned int rand(void);
  472. unsigned int rand_r(unsigned int *seedp);
  473. /*
  474. * STDIO based functions (can always be used)
  475. */
  476. /* serial stuff */
  477. int serial_printf (const char *fmt, ...)
  478. __attribute__ ((format (__printf__, 1, 2)));
  479. /* lib/gzip.c */
  480. int gzip(void *dst, unsigned long *lenp,
  481. unsigned char *src, unsigned long srclen);
  482. int zzip(void *dst, unsigned long *lenp, unsigned char *src,
  483. unsigned long srclen, int stoponerr,
  484. int (*func)(unsigned long, unsigned long));
  485. /* lib/net_utils.c */
  486. #include <net.h>
  487. static inline struct in_addr env_get_ip(char *var)
  488. {
  489. return string_to_ip(env_get(var));
  490. }
  491. int pcmcia_init (void);
  492. #ifdef CONFIG_LED_STATUS
  493. # include <status_led.h>
  494. #endif
  495. #include <bootstage.h>
  496. #ifdef CONFIG_SHOW_ACTIVITY
  497. void show_activity(int arg);
  498. #endif
  499. /* Multicore arch functions */
  500. #ifdef CONFIG_MP
  501. int cpu_status(int nr);
  502. int cpu_reset(int nr);
  503. int cpu_disable(int nr);
  504. int cpu_release(int nr, int argc, char * const argv[]);
  505. #endif
  506. #else /* __ASSEMBLY__ */
  507. /* Drop a C type modifier (like in 3UL) for constants used in assembly. */
  508. #define _AC(X, Y) X
  509. #endif /* __ASSEMBLY__ */
  510. /* Put only stuff here that the assembler can digest */
  511. /* Declare an unsigned long constant digestable both by C and an assembler. */
  512. #define UL(x) _AC(x, UL)
  513. #ifdef CONFIG_POST
  514. #define CONFIG_HAS_POST
  515. #ifndef CONFIG_POST_ALT_LIST
  516. #define CONFIG_POST_STD_LIST
  517. #endif
  518. #endif
  519. #ifdef CONFIG_INIT_CRITICAL
  520. #error CONFIG_INIT_CRITICAL is deprecated!
  521. #error Read section CONFIG_SKIP_LOWLEVEL_INIT in README.
  522. #endif
  523. #define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1))
  524. /*
  525. * check_member() - Check the offset of a structure member
  526. *
  527. * @structure: Name of structure (e.g. global_data)
  528. * @member: Name of member (e.g. baudrate)
  529. * @offset: Expected offset in bytes
  530. */
  531. #define check_member(structure, member, offset) _Static_assert( \
  532. offsetof(struct structure, member) == offset, \
  533. "`struct " #structure "` offset for `" #member "` is not " #offset)
  534. /* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */
  535. #ifdef CONFIG_EFI_STUB
  536. #define ll_boot_init() false
  537. #else
  538. #define ll_boot_init() true
  539. #endif
  540. /* Pull in stuff for the build system */
  541. #ifdef DO_DEPS_ONLY
  542. # include <environment.h>
  543. #endif
  544. #endif /* __COMMON_H_ */