1 /* 2 * Copyright (c) 2025 Cadence Design Systems, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 9 #if defined(CONFIG_MULTIBOOT_INFO) 10 11 __pinned_noinit char multiboot_cmdline[CONFIG_BOOTARGS_ARGS_BUFFER_SIZE]; 12 get_bootargs(void)13const char *get_bootargs(void) 14 { 15 return multiboot_cmdline; 16 } 17 18 #elif defined(CONFIG_X86_EFI) 19 20 __pinned_noinit char efi_bootargs[CONFIG_BOOTARGS_ARGS_BUFFER_SIZE]; 21 get_bootargs(void)22const char *get_bootargs(void) 23 { 24 return efi_bootargs; 25 } 26 27 #endif 28