1/* 2 * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7#include "pico/asm_helper.S" 8#include "pico/bootrom/sf_table.h" 9 10pico_default_asm_setup 11 12wrapper_func sprintf 13wrapper_func snprintf 14wrapper_func vsnprintf 15// pico_stdio may itself overwrite printf, so we want to support that (hence weak), but override it 16// here to in case pico_stdio is not used 17weak_wrapper_func printf 18regular_func printf_none_assert 19#ifndef __riscv 20 push {lr} // keep stack trace sane 21 ldr r0, =str 22 bl panic 23#else 24 la a0, str 25 call panic 26#endif 27 28str: 29 .asciz "printf support is disabled"