├── .github └── FUNDING.yml ├── CMakeLists.txt ├── Kboot.md ├── LICENSE.md ├── README.md ├── build ├── BUILD.sh ├── CLEAN.sh ├── MicroPython.bin ├── bootloader_hi.bin ├── bootloader_hi.dump ├── bootloader_hi.elf ├── bootloader_lo.bin ├── bootloader_lo.dump ├── bootloader_lo.elf ├── config.bin ├── default.bin ├── dvp_ov.bin ├── kboot.kfpkg ├── ktool.py └── maixpy.bin ├── cmake ├── CMakeLists.txt ├── README.md ├── common.cmake ├── compile-flags.cmake ├── dump-config.cmake ├── executable.cmake ├── fix-9985.cmake ├── ide.cmake ├── macros.cmake ├── macros.internal.cmake └── toolchain.cmake ├── kendryte-toolchain ├── bin │ ├── riscv64-unknown-elf-addr2line │ ├── riscv64-unknown-elf-ar │ ├── riscv64-unknown-elf-as │ ├── riscv64-unknown-elf-c++filt │ ├── riscv64-unknown-elf-elfedit │ ├── riscv64-unknown-elf-gcc │ ├── riscv64-unknown-elf-gcc-8.2.0 │ ├── riscv64-unknown-elf-gcc-ar │ ├── riscv64-unknown-elf-gcc-nm │ ├── riscv64-unknown-elf-gcc-ranlib │ ├── riscv64-unknown-elf-gcov │ ├── riscv64-unknown-elf-gcov-dump │ ├── riscv64-unknown-elf-gcov-tool │ ├── riscv64-unknown-elf-gdb-add-index │ ├── riscv64-unknown-elf-gprof │ ├── riscv64-unknown-elf-ld │ ├── riscv64-unknown-elf-ld.bfd │ ├── riscv64-unknown-elf-nm │ ├── riscv64-unknown-elf-objcopy │ ├── riscv64-unknown-elf-objdump │ ├── riscv64-unknown-elf-ranlib │ ├── riscv64-unknown-elf-readelf │ ├── riscv64-unknown-elf-size │ ├── riscv64-unknown-elf-strings │ └── riscv64-unknown-elf-strip ├── include │ ├── gdb │ │ └── jit-reader.h │ └── gnumake.h ├── lib │ └── gcc │ │ └── riscv64-unknown-elf │ │ └── 8.2.0 │ │ ├── crtbegin.o │ │ ├── crtend.o │ │ ├── crti.o │ │ ├── crtn.o │ │ ├── include-fixed │ │ ├── README │ │ ├── limits.h │ │ └── syslimits.h │ │ ├── include │ │ ├── float.h │ │ ├── gcov.h │ │ ├── iso646.h │ │ ├── stdalign.h │ │ ├── stdarg.h │ │ ├── stdatomic.h │ │ ├── stdbool.h │ │ ├── stddef.h │ │ ├── stdfix.h │ │ ├── stdint-gcc.h │ │ ├── stdint.h │ │ ├── stdnoreturn.h │ │ ├── tgmath.h │ │ ├── unwind.h │ │ └── varargs.h │ │ ├── install-tools │ │ ├── fixinc_list │ │ ├── gsyslimits.h │ │ ├── include │ │ │ ├── README │ │ │ └── limits.h │ │ ├── macro_list │ │ └── mkheaders.conf │ │ ├── libgcc.a │ │ └── libgcov.a ├── libexec │ └── gcc │ │ └── riscv64-unknown-elf │ │ └── 8.2.0 │ │ └── cc1 └── riscv64-unknown-elf │ ├── bin │ ├── ar │ ├── as │ ├── ld │ ├── ld.bfd │ ├── nm │ ├── objcopy │ ├── objdump │ ├── ranlib │ ├── readelf │ └── strip │ ├── include │ ├── _ansi.h │ ├── _newlib_version.h │ ├── _syslist.h │ ├── alloca.h │ ├── ar.h │ ├── argz.h │ ├── assert.h │ ├── c++ │ │ └── 8.2.0 │ │ │ ├── algorithm │ │ │ ├── any │ │ │ ├── array │ │ │ ├── atomic │ │ │ ├── backward │ │ │ ├── auto_ptr.h │ │ │ ├── backward_warning.h │ │ │ ├── binders.h │ │ │ ├── hash_fun.h │ │ │ ├── hash_map │ │ │ ├── hash_set │ │ │ ├── hashtable.h │ │ │ └── strstream │ │ │ ├── bits │ │ │ ├── algorithmfwd.h │ │ │ ├── alloc_traits.h │ │ │ ├── allocated_ptr.h │ │ │ ├── allocator.h │ │ │ ├── atomic_base.h │ │ │ ├── atomic_futex.h │ │ │ ├── atomic_lockfree_defines.h │ │ │ ├── basic_ios.h │ │ │ ├── basic_ios.tcc │ │ │ ├── basic_string.h │ │ │ ├── basic_string.tcc │ │ │ ├── boost_concept_check.h │ │ │ ├── c++0x_warning.h │ │ │ ├── char_traits.h │ │ │ ├── codecvt.h │ │ │ ├── concept_check.h │ │ │ ├── cpp_type_traits.h │ │ │ ├── cxxabi_forced.h │ │ │ ├── cxxabi_init_exception.h │ │ │ ├── deque.tcc │ │ │ ├── enable_special_members.h │ │ │ ├── exception.h │ │ │ ├── exception_defines.h │ │ │ ├── exception_ptr.h │ │ │ ├── forward_list.h │ │ │ ├── forward_list.tcc │ │ │ ├── fs_dir.h │ │ │ ├── fs_fwd.h │ │ │ ├── fs_ops.h │ │ │ ├── fs_path.h │ │ │ ├── fstream.tcc │ │ │ ├── functexcept.h │ │ │ ├── functional_hash.h │ │ │ ├── gslice.h │ │ │ ├── gslice_array.h │ │ │ ├── hash_bytes.h │ │ │ ├── hashtable.h │ │ │ ├── hashtable_policy.h │ │ │ ├── indirect_array.h │ │ │ ├── invoke.h │ │ │ ├── ios_base.h │ │ │ ├── istream.tcc │ │ │ ├── list.tcc │ │ │ ├── locale_classes.h │ │ │ ├── locale_classes.tcc │ │ │ ├── locale_conv.h │ │ │ ├── locale_facets.h │ │ │ ├── locale_facets.tcc │ │ │ ├── locale_facets_nonio.h │ │ │ ├── locale_facets_nonio.tcc │ │ │ ├── localefwd.h │ │ │ ├── mask_array.h │ │ │ ├── memoryfwd.h │ │ │ ├── move.h │ │ │ ├── nested_exception.h │ │ │ ├── node_handle.h │ │ │ ├── ostream.tcc │ │ │ ├── ostream_insert.h │ │ │ ├── parse_numbers.h │ │ │ ├── postypes.h │ │ │ ├── predefined_ops.h │ │ │ ├── ptr_traits.h │ │ │ ├── quoted_string.h │ │ │ ├── random.h │ │ │ ├── random.tcc │ │ │ ├── range_access.h │ │ │ ├── refwrap.h │ │ │ ├── regex.h │ │ │ ├── regex.tcc │ │ │ ├── regex_automaton.h │ │ │ ├── regex_automaton.tcc │ │ │ ├── regex_compiler.h │ │ │ ├── regex_compiler.tcc │ │ │ ├── regex_constants.h │ │ │ ├── regex_error.h │ │ │ ├── regex_executor.h │ │ │ ├── regex_executor.tcc │ │ │ ├── regex_scanner.h │ │ │ ├── regex_scanner.tcc │ │ │ ├── shared_ptr.h │ │ │ ├── shared_ptr_atomic.h │ │ │ ├── shared_ptr_base.h │ │ │ ├── slice_array.h │ │ │ ├── specfun.h │ │ │ ├── sstream.tcc │ │ │ ├── std_abs.h │ │ │ ├── std_function.h │ │ │ ├── std_mutex.h │ │ │ ├── stl_algo.h │ │ │ ├── stl_algobase.h │ │ │ ├── stl_bvector.h │ │ │ ├── stl_construct.h │ │ │ ├── stl_deque.h │ │ │ ├── stl_function.h │ │ │ ├── stl_heap.h │ │ │ ├── stl_iterator.h │ │ │ ├── stl_iterator_base_funcs.h │ │ │ ├── stl_iterator_base_types.h │ │ │ ├── stl_list.h │ │ │ ├── stl_map.h │ │ │ ├── stl_multimap.h │ │ │ ├── stl_multiset.h │ │ │ ├── stl_numeric.h │ │ │ ├── stl_pair.h │ │ │ ├── stl_queue.h │ │ │ ├── stl_raw_storage_iter.h │ │ │ ├── stl_relops.h │ │ │ ├── stl_set.h │ │ │ ├── stl_stack.h │ │ │ ├── stl_tempbuf.h │ │ │ ├── stl_tree.h │ │ │ ├── stl_uninitialized.h │ │ │ ├── stl_vector.h │ │ │ ├── stream_iterator.h │ │ │ ├── streambuf.tcc │ │ │ ├── streambuf_iterator.h │ │ │ ├── string_view.tcc │ │ │ ├── stringfwd.h │ │ │ ├── uniform_int_dist.h │ │ │ ├── unique_ptr.h │ │ │ ├── unordered_map.h │ │ │ ├── unordered_set.h │ │ │ ├── uses_allocator.h │ │ │ ├── valarray_after.h │ │ │ ├── valarray_array.h │ │ │ ├── valarray_array.tcc │ │ │ ├── valarray_before.h │ │ │ └── vector.tcc │ │ │ ├── bitset │ │ │ ├── cassert │ │ │ ├── ccomplex │ │ │ ├── cctype │ │ │ ├── cerrno │ │ │ ├── cfenv │ │ │ ├── cfloat │ │ │ ├── charconv │ │ │ ├── chrono │ │ │ ├── cinttypes │ │ │ ├── ciso646 │ │ │ ├── climits │ │ │ ├── clocale │ │ │ ├── cmath │ │ │ ├── codecvt │ │ │ ├── complex │ │ │ ├── complex.h │ │ │ ├── condition_variable │ │ │ ├── csetjmp │ │ │ ├── csignal │ │ │ ├── cstdalign │ │ │ ├── cstdarg │ │ │ ├── cstdbool │ │ │ ├── cstddef │ │ │ ├── cstdint │ │ │ ├── cstdio │ │ │ ├── cstdlib │ │ │ ├── cstring │ │ │ ├── ctgmath │ │ │ ├── ctime │ │ │ ├── cuchar │ │ │ ├── cwchar │ │ │ ├── cwctype │ │ │ ├── cxxabi.h │ │ │ ├── debug │ │ │ ├── array │ │ │ ├── assertions.h │ │ │ ├── bitset │ │ │ ├── debug.h │ │ │ ├── deque │ │ │ ├── formatter.h │ │ │ ├── forward_list │ │ │ ├── functions.h │ │ │ ├── helper_functions.h │ │ │ ├── list │ │ │ ├── macros.h │ │ │ ├── map │ │ │ ├── map.h │ │ │ ├── multimap.h │ │ │ ├── multiset.h │ │ │ ├── safe_base.h │ │ │ ├── safe_container.h │ │ │ ├── safe_iterator.h │ │ │ ├── safe_iterator.tcc │ │ │ ├── safe_local_iterator.h │ │ │ ├── safe_local_iterator.tcc │ │ │ ├── safe_sequence.h │ │ │ ├── safe_sequence.tcc │ │ │ ├── safe_unordered_base.h │ │ │ ├── safe_unordered_container.h │ │ │ ├── safe_unordered_container.tcc │ │ │ ├── set │ │ │ ├── set.h │ │ │ ├── stl_iterator.h │ │ │ ├── string │ │ │ ├── unordered_map │ │ │ ├── unordered_set │ │ │ └── vector │ │ │ ├── decimal │ │ │ ├── decimal │ │ │ └── decimal.h │ │ │ ├── deque │ │ │ ├── exception │ │ │ ├── experimental │ │ │ ├── algorithm │ │ │ ├── any │ │ │ ├── array │ │ │ ├── bits │ │ │ │ ├── erase_if.h │ │ │ │ ├── lfts_config.h │ │ │ │ ├── shared_ptr.h │ │ │ │ └── string_view.tcc │ │ │ ├── chrono │ │ │ ├── deque │ │ │ ├── forward_list │ │ │ ├── functional │ │ │ ├── iterator │ │ │ ├── list │ │ │ ├── map │ │ │ ├── memory │ │ │ ├── memory_resource │ │ │ ├── numeric │ │ │ ├── optional │ │ │ ├── propagate_const │ │ │ ├── random │ │ │ ├── ratio │ │ │ ├── regex │ │ │ ├── set │ │ │ ├── source_location │ │ │ ├── string │ │ │ ├── string_view │ │ │ ├── system_error │ │ │ ├── tuple │ │ │ ├── type_traits │ │ │ ├── unordered_map │ │ │ ├── unordered_set │ │ │ ├── utility │ │ │ └── vector │ │ │ ├── ext │ │ │ ├── algorithm │ │ │ ├── aligned_buffer.h │ │ │ ├── alloc_traits.h │ │ │ ├── array_allocator.h │ │ │ ├── atomicity.h │ │ │ ├── bitmap_allocator.h │ │ │ ├── cast.h │ │ │ ├── cmath │ │ │ ├── codecvt_specializations.h │ │ │ ├── concurrence.h │ │ │ ├── debug_allocator.h │ │ │ ├── enc_filebuf.h │ │ │ ├── extptr_allocator.h │ │ │ ├── functional │ │ │ ├── hash_map │ │ │ ├── hash_set │ │ │ ├── iterator │ │ │ ├── malloc_allocator.h │ │ │ ├── memory │ │ │ ├── mt_allocator.h │ │ │ ├── new_allocator.h │ │ │ ├── numeric │ │ │ ├── numeric_traits.h │ │ │ ├── pb_ds │ │ │ │ ├── assoc_container.hpp │ │ │ │ ├── detail │ │ │ │ │ ├── bin_search_tree_ │ │ │ │ │ │ ├── bin_search_tree_.hpp │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── node_iterators.hpp │ │ │ │ │ │ ├── point_iterators.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── r_erase_fn_imps.hpp │ │ │ │ │ │ ├── rotate_fn_imps.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── traits.hpp │ │ │ │ │ ├── binary_heap_ │ │ │ │ │ │ ├── binary_heap_.hpp │ │ │ │ │ │ ├── const_iterator.hpp │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── entry_cmp.hpp │ │ │ │ │ │ ├── entry_pred.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── point_const_iterator.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── resize_policy.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── binomial_heap_ │ │ │ │ │ │ ├── binomial_heap_.hpp │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ └── debug_fn_imps.hpp │ │ │ │ │ ├── binomial_heap_base_ │ │ │ │ │ │ ├── binomial_heap_base_.hpp │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ └── split_join_fn_imps.hpp │ │ │ │ │ ├── branch_policy │ │ │ │ │ │ ├── branch_policy.hpp │ │ │ │ │ │ ├── null_node_metadata.hpp │ │ │ │ │ │ └── traits.hpp │ │ │ │ │ ├── cc_hash_table_map_ │ │ │ │ │ │ ├── cc_ht_map_.hpp │ │ │ │ │ │ ├── cmp_fn_imps.hpp │ │ │ │ │ │ ├── cond_key_dtor_entry_dealtor.hpp │ │ │ │ │ │ ├── constructor_destructor_fn_imps.hpp │ │ │ │ │ │ ├── constructor_destructor_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── constructor_destructor_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── debug_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── debug_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── entry_list_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── erase_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── erase_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── find_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── insert_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── insert_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── resize_fn_imps.hpp │ │ │ │ │ │ ├── resize_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── resize_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── size_fn_imps.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── cond_dealtor.hpp │ │ │ │ │ ├── container_base_dispatch.hpp │ │ │ │ │ ├── debug_map_base.hpp │ │ │ │ │ ├── eq_fn │ │ │ │ │ │ ├── eq_by_less.hpp │ │ │ │ │ │ └── hash_eq_fn.hpp │ │ │ │ │ ├── gp_hash_table_map_ │ │ │ │ │ │ ├── constructor_destructor_fn_imps.hpp │ │ │ │ │ │ ├── constructor_destructor_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── constructor_destructor_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── debug_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── debug_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── erase_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── erase_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── find_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── find_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── gp_ht_map_.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── insert_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── insert_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── iterator_fn_imps.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── resize_fn_imps.hpp │ │ │ │ │ │ ├── resize_no_store_hash_fn_imps.hpp │ │ │ │ │ │ ├── resize_store_hash_fn_imps.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── hash_fn │ │ │ │ │ │ ├── direct_mask_range_hashing_imp.hpp │ │ │ │ │ │ ├── direct_mod_range_hashing_imp.hpp │ │ │ │ │ │ ├── linear_probe_fn_imp.hpp │ │ │ │ │ │ ├── mask_based_range_hashing.hpp │ │ │ │ │ │ ├── mod_based_range_hashing.hpp │ │ │ │ │ │ ├── probe_fn_base.hpp │ │ │ │ │ │ ├── quadratic_probe_fn_imp.hpp │ │ │ │ │ │ ├── ranged_hash_fn.hpp │ │ │ │ │ │ ├── ranged_probe_fn.hpp │ │ │ │ │ │ ├── sample_probe_fn.hpp │ │ │ │ │ │ ├── sample_range_hashing.hpp │ │ │ │ │ │ ├── sample_ranged_hash_fn.hpp │ │ │ │ │ │ └── sample_ranged_probe_fn.hpp │ │ │ │ │ ├── left_child_next_sibling_heap_ │ │ │ │ │ │ ├── const_iterator.hpp │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── left_child_next_sibling_heap_.hpp │ │ │ │ │ │ ├── node.hpp │ │ │ │ │ │ ├── point_const_iterator.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── list_update_map_ │ │ │ │ │ │ ├── constructor_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── entry_metadata_base.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── lu_map_.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── list_update_policy │ │ │ │ │ │ ├── lu_counter_metadata.hpp │ │ │ │ │ │ └── sample_update_policy.hpp │ │ │ │ │ ├── ov_tree_map_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── node_iterators.hpp │ │ │ │ │ │ ├── ov_tree_map_.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── traits.hpp │ │ │ │ │ ├── pairing_heap_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── pairing_heap_.hpp │ │ │ │ │ │ └── split_join_fn_imps.hpp │ │ │ │ │ ├── pat_trie_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_join_fn_imps.hpp │ │ │ │ │ │ ├── iterators_fn_imps.hpp │ │ │ │ │ │ ├── pat_trie_.hpp │ │ │ │ │ │ ├── pat_trie_base.hpp │ │ │ │ │ │ ├── policy_access_fn_imps.hpp │ │ │ │ │ │ ├── r_erase_fn_imps.hpp │ │ │ │ │ │ ├── rotate_fn_imps.hpp │ │ │ │ │ │ ├── split_fn_imps.hpp │ │ │ │ │ │ ├── synth_access_traits.hpp │ │ │ │ │ │ ├── trace_fn_imps.hpp │ │ │ │ │ │ ├── traits.hpp │ │ │ │ │ │ └── update_fn_imps.hpp │ │ │ │ │ ├── priority_queue_base_dispatch.hpp │ │ │ │ │ ├── rb_tree_map_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── node.hpp │ │ │ │ │ │ ├── rb_tree_.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── traits.hpp │ │ │ │ │ ├── rc_binomial_heap_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── rc.hpp │ │ │ │ │ │ ├── rc_binomial_heap_.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── resize_policy │ │ │ │ │ │ ├── cc_hash_max_collision_check_resize_trigger_imp.hpp │ │ │ │ │ │ ├── hash_exponential_size_policy_imp.hpp │ │ │ │ │ │ ├── hash_load_check_resize_trigger_imp.hpp │ │ │ │ │ │ ├── hash_load_check_resize_trigger_size_base.hpp │ │ │ │ │ │ ├── hash_prime_size_policy_imp.hpp │ │ │ │ │ │ ├── hash_standard_resize_policy_imp.hpp │ │ │ │ │ │ ├── sample_resize_policy.hpp │ │ │ │ │ │ ├── sample_resize_trigger.hpp │ │ │ │ │ │ └── sample_size_policy.hpp │ │ │ │ │ ├── splay_tree_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── info_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── node.hpp │ │ │ │ │ │ ├── splay_fn_imps.hpp │ │ │ │ │ │ ├── splay_tree_.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ └── traits.hpp │ │ │ │ │ ├── standard_policies.hpp │ │ │ │ │ ├── thin_heap_ │ │ │ │ │ │ ├── constructors_destructor_fn_imps.hpp │ │ │ │ │ │ ├── debug_fn_imps.hpp │ │ │ │ │ │ ├── erase_fn_imps.hpp │ │ │ │ │ │ ├── find_fn_imps.hpp │ │ │ │ │ │ ├── insert_fn_imps.hpp │ │ │ │ │ │ ├── split_join_fn_imps.hpp │ │ │ │ │ │ ├── thin_heap_.hpp │ │ │ │ │ │ └── trace_fn_imps.hpp │ │ │ │ │ ├── tree_policy │ │ │ │ │ │ ├── node_metadata_selector.hpp │ │ │ │ │ │ ├── order_statistics_imp.hpp │ │ │ │ │ │ └── sample_tree_node_update.hpp │ │ │ │ │ ├── tree_trace_base.hpp │ │ │ │ │ ├── trie_policy │ │ │ │ │ │ ├── node_metadata_selector.hpp │ │ │ │ │ │ ├── order_statistics_imp.hpp │ │ │ │ │ │ ├── prefix_search_node_update_imp.hpp │ │ │ │ │ │ ├── sample_trie_access_traits.hpp │ │ │ │ │ │ ├── sample_trie_node_update.hpp │ │ │ │ │ │ ├── trie_policy_base.hpp │ │ │ │ │ │ └── trie_string_access_traits_imp.hpp │ │ │ │ │ ├── type_utils.hpp │ │ │ │ │ ├── types_traits.hpp │ │ │ │ │ └── unordered_iterator │ │ │ │ │ │ ├── const_iterator.hpp │ │ │ │ │ │ ├── iterator.hpp │ │ │ │ │ │ ├── point_const_iterator.hpp │ │ │ │ │ │ └── point_iterator.hpp │ │ │ │ ├── exception.hpp │ │ │ │ ├── hash_policy.hpp │ │ │ │ ├── list_update_policy.hpp │ │ │ │ ├── priority_queue.hpp │ │ │ │ ├── tag_and_trait.hpp │ │ │ │ ├── tree_policy.hpp │ │ │ │ └── trie_policy.hpp │ │ │ ├── pod_char_traits.h │ │ │ ├── pointer.h │ │ │ ├── pool_allocator.h │ │ │ ├── random │ │ │ ├── random.tcc │ │ │ ├── rb_tree │ │ │ ├── rc_string_base.h │ │ │ ├── rope │ │ │ ├── ropeimpl.h │ │ │ ├── slist │ │ │ ├── sso_string_base.h │ │ │ ├── stdio_filebuf.h │ │ │ ├── stdio_sync_filebuf.h │ │ │ ├── string_conversions.h │ │ │ ├── throw_allocator.h │ │ │ ├── type_traits.h │ │ │ ├── typelist.h │ │ │ ├── vstring.h │ │ │ ├── vstring.tcc │ │ │ ├── vstring_fwd.h │ │ │ └── vstring_util.h │ │ │ ├── fenv.h │ │ │ ├── filesystem │ │ │ ├── forward_list │ │ │ ├── fstream │ │ │ ├── functional │ │ │ ├── future │ │ │ ├── initializer_list │ │ │ ├── iomanip │ │ │ ├── ios │ │ │ ├── iosfwd │ │ │ ├── iostream │ │ │ ├── istream │ │ │ ├── iterator │ │ │ ├── limits │ │ │ ├── list │ │ │ ├── locale │ │ │ ├── map │ │ │ ├── math.h │ │ │ ├── memory │ │ │ ├── mutex │ │ │ ├── new │ │ │ ├── numeric │ │ │ ├── optional │ │ │ ├── ostream │ │ │ ├── parallel │ │ │ ├── algo.h │ │ │ ├── algobase.h │ │ │ ├── algorithm │ │ │ ├── algorithmfwd.h │ │ │ ├── balanced_quicksort.h │ │ │ ├── base.h │ │ │ ├── basic_iterator.h │ │ │ ├── checkers.h │ │ │ ├── compatibility.h │ │ │ ├── compiletime_settings.h │ │ │ ├── equally_split.h │ │ │ ├── features.h │ │ │ ├── find.h │ │ │ ├── find_selectors.h │ │ │ ├── for_each.h │ │ │ ├── for_each_selectors.h │ │ │ ├── iterator.h │ │ │ ├── list_partition.h │ │ │ ├── losertree.h │ │ │ ├── merge.h │ │ │ ├── multiseq_selection.h │ │ │ ├── multiway_merge.h │ │ │ ├── multiway_mergesort.h │ │ │ ├── numeric │ │ │ ├── numericfwd.h │ │ │ ├── omp_loop.h │ │ │ ├── omp_loop_static.h │ │ │ ├── par_loop.h │ │ │ ├── parallel.h │ │ │ ├── partial_sum.h │ │ │ ├── partition.h │ │ │ ├── queue.h │ │ │ ├── quicksort.h │ │ │ ├── random_number.h │ │ │ ├── random_shuffle.h │ │ │ ├── search.h │ │ │ ├── set_operations.h │ │ │ ├── settings.h │ │ │ ├── sort.h │ │ │ ├── tags.h │ │ │ ├── types.h │ │ │ ├── unique_copy.h │ │ │ └── workstealing.h │ │ │ ├── profile │ │ │ ├── array │ │ │ ├── base.h │ │ │ ├── bitset │ │ │ ├── deque │ │ │ ├── forward_list │ │ │ ├── impl │ │ │ │ ├── profiler.h │ │ │ │ ├── profiler_algos.h │ │ │ │ ├── profiler_container_size.h │ │ │ │ ├── profiler_hash_func.h │ │ │ │ ├── profiler_hashtable_size.h │ │ │ │ ├── profiler_list_to_slist.h │ │ │ │ ├── profiler_list_to_vector.h │ │ │ │ ├── profiler_map_to_unordered_map.h │ │ │ │ ├── profiler_node.h │ │ │ │ ├── profiler_state.h │ │ │ │ ├── profiler_trace.h │ │ │ │ ├── profiler_vector_size.h │ │ │ │ └── profiler_vector_to_list.h │ │ │ ├── iterator_tracker.h │ │ │ ├── list │ │ │ ├── map │ │ │ ├── map.h │ │ │ ├── multimap.h │ │ │ ├── multiset.h │ │ │ ├── ordered_base.h │ │ │ ├── set │ │ │ ├── set.h │ │ │ ├── unordered_base.h │ │ │ ├── unordered_map │ │ │ ├── unordered_set │ │ │ └── vector │ │ │ ├── queue │ │ │ ├── random │ │ │ ├── ratio │ │ │ ├── regex │ │ │ ├── riscv64-unknown-elf │ │ │ ├── bits │ │ │ │ ├── atomic_word.h │ │ │ │ ├── basic_file.h │ │ │ │ ├── c++allocator.h │ │ │ │ ├── c++config.h │ │ │ │ ├── c++io.h │ │ │ │ ├── c++locale.h │ │ │ │ ├── cpu_defines.h │ │ │ │ ├── ctype_base.h │ │ │ │ ├── ctype_inline.h │ │ │ │ ├── cxxabi_tweaks.h │ │ │ │ ├── error_constants.h │ │ │ │ ├── extc++.h │ │ │ │ ├── gthr-default.h │ │ │ │ ├── gthr-posix.h │ │ │ │ ├── gthr-single.h │ │ │ │ ├── gthr.h │ │ │ │ ├── messages_members.h │ │ │ │ ├── opt_random.h │ │ │ │ ├── os_defines.h │ │ │ │ ├── stdc++.h │ │ │ │ ├── stdtr1c++.h │ │ │ │ └── time_members.h │ │ │ └── ext │ │ │ │ └── opt_random.h │ │ │ ├── scoped_allocator │ │ │ ├── set │ │ │ ├── shared_mutex │ │ │ ├── sstream │ │ │ ├── stack │ │ │ ├── stdexcept │ │ │ ├── stdlib.h │ │ │ ├── streambuf │ │ │ ├── string │ │ │ ├── string_view │ │ │ ├── system_error │ │ │ ├── tgmath.h │ │ │ ├── thread │ │ │ ├── tr1 │ │ │ ├── array │ │ │ ├── bessel_function.tcc │ │ │ ├── beta_function.tcc │ │ │ ├── ccomplex │ │ │ ├── cctype │ │ │ ├── cfenv │ │ │ ├── cfloat │ │ │ ├── cinttypes │ │ │ ├── climits │ │ │ ├── cmath │ │ │ ├── complex │ │ │ ├── complex.h │ │ │ ├── cstdarg │ │ │ ├── cstdbool │ │ │ ├── cstdint │ │ │ ├── cstdio │ │ │ ├── cstdlib │ │ │ ├── ctgmath │ │ │ ├── ctime │ │ │ ├── ctype.h │ │ │ ├── cwchar │ │ │ ├── cwctype │ │ │ ├── ell_integral.tcc │ │ │ ├── exp_integral.tcc │ │ │ ├── fenv.h │ │ │ ├── float.h │ │ │ ├── functional │ │ │ ├── functional_hash.h │ │ │ ├── gamma.tcc │ │ │ ├── hashtable.h │ │ │ ├── hashtable_policy.h │ │ │ ├── hypergeometric.tcc │ │ │ ├── inttypes.h │ │ │ ├── legendre_function.tcc │ │ │ ├── limits.h │ │ │ ├── math.h │ │ │ ├── memory │ │ │ ├── modified_bessel_func.tcc │ │ │ ├── poly_hermite.tcc │ │ │ ├── poly_laguerre.tcc │ │ │ ├── random │ │ │ ├── random.h │ │ │ ├── random.tcc │ │ │ ├── regex │ │ │ ├── riemann_zeta.tcc │ │ │ ├── shared_ptr.h │ │ │ ├── special_function_util.h │ │ │ ├── stdarg.h │ │ │ ├── stdbool.h │ │ │ ├── stdint.h │ │ │ ├── stdio.h │ │ │ ├── stdlib.h │ │ │ ├── tgmath.h │ │ │ ├── tuple │ │ │ ├── type_traits │ │ │ ├── unordered_map │ │ │ ├── unordered_map.h │ │ │ ├── unordered_set │ │ │ ├── unordered_set.h │ │ │ ├── utility │ │ │ ├── wchar.h │ │ │ └── wctype.h │ │ │ ├── tr2 │ │ │ ├── bool_set │ │ │ ├── bool_set.tcc │ │ │ ├── dynamic_bitset │ │ │ ├── dynamic_bitset.tcc │ │ │ ├── ratio │ │ │ └── type_traits │ │ │ ├── tuple │ │ │ ├── type_traits │ │ │ ├── typeindex │ │ │ ├── typeinfo │ │ │ ├── unordered_map │ │ │ ├── unordered_set │ │ │ ├── utility │ │ │ ├── valarray │ │ │ ├── variant │ │ │ └── vector │ ├── complex.h │ ├── cpio.h │ ├── ctype.h │ ├── devctl.h │ ├── dirent.h │ ├── elf.h │ ├── envlock.h │ ├── envz.h │ ├── errno.h │ ├── fastmath.h │ ├── fcntl.h │ ├── fenv.h │ ├── fnmatch.h │ ├── getopt.h │ ├── glob.h │ ├── grp.h │ ├── iconv.h │ ├── ieeefp.h │ ├── inttypes.h │ ├── langinfo.h │ ├── libgen.h │ ├── limits.h │ ├── locale.h │ ├── machine │ │ ├── _arc4random.h │ │ ├── _default_types.h │ │ ├── _endian.h │ │ ├── _time.h │ │ ├── _types.h │ │ ├── ansi.h │ │ ├── endian.h │ │ ├── fastmath.h │ │ ├── ieeefp.h │ │ ├── malloc.h │ │ ├── param.h │ │ ├── setjmp-dj.h │ │ ├── setjmp.h │ │ ├── stdlib.h │ │ ├── syscall.h │ │ ├── termios.h │ │ ├── time.h │ │ └── types.h │ ├── malloc.h │ ├── math.h │ ├── memory.h │ ├── newlib-nano │ │ └── newlib.h │ ├── newlib.h │ ├── paths.h │ ├── pthread.h │ ├── pwd.h │ ├── reent.h │ ├── regdef.h │ ├── regex.h │ ├── sched.h │ ├── search.h │ ├── setjmp.h │ ├── signal.h │ ├── spawn.h │ ├── ssp │ │ ├── ssp.h │ │ ├── stdio.h │ │ ├── stdlib.h │ │ ├── string.h │ │ ├── strings.h │ │ ├── unistd.h │ │ └── wchar.h │ ├── stdatomic.h │ ├── stdint.h │ ├── stdio.h │ ├── stdio_ext.h │ ├── stdlib.h │ ├── string.h │ ├── strings.h │ ├── sys │ │ ├── _default_fcntl.h │ │ ├── _intsup.h │ │ ├── _pthreadtypes.h │ │ ├── _sigset.h │ │ ├── _stdint.h │ │ ├── _timespec.h │ │ ├── _timeval.h │ │ ├── _types.h │ │ ├── asm.h │ │ ├── cdefs.h │ │ ├── config.h │ │ ├── custom_file.h │ │ ├── dir.h │ │ ├── dirent.h │ │ ├── errno.h │ │ ├── fcntl.h │ │ ├── features.h │ │ ├── fenv.h │ │ ├── file.h │ │ ├── iconvnls.h │ │ ├── lock.h │ │ ├── param.h │ │ ├── queue.h │ │ ├── reent.h │ │ ├── resource.h │ │ ├── sched.h │ │ ├── select.h │ │ ├── signal.h │ │ ├── stat.h │ │ ├── stdio.h │ │ ├── string.h │ │ ├── syslimits.h │ │ ├── time.h │ │ ├── timeb.h │ │ ├── times.h │ │ ├── timespec.h │ │ ├── tree.h │ │ ├── types.h │ │ ├── unistd.h │ │ ├── utime.h │ │ └── wait.h │ ├── tar.h │ ├── termios.h │ ├── tgmath.h │ ├── threads.h │ ├── time.h │ ├── unctrl.h │ ├── unistd.h │ ├── utime.h │ ├── utmp.h │ ├── wchar.h │ ├── wctype.h │ ├── wordexp.h │ └── xlocale.h │ └── lib │ ├── crt0.o │ ├── ldscripts │ ├── elf32lriscv.x │ ├── elf32lriscv.xbn │ ├── elf32lriscv.xc │ ├── elf32lriscv.xce │ ├── elf32lriscv.xe │ ├── elf32lriscv.xn │ ├── elf32lriscv.xr │ ├── elf32lriscv.xu │ ├── elf32lriscv.xw │ ├── elf32lriscv.xwe │ ├── elf64lriscv.x │ ├── elf64lriscv.xbn │ ├── elf64lriscv.xc │ ├── elf64lriscv.xce │ ├── elf64lriscv.xe │ ├── elf64lriscv.xn │ ├── elf64lriscv.xr │ ├── elf64lriscv.xu │ ├── elf64lriscv.xw │ └── elf64lriscv.xwe │ ├── libatomic.a │ ├── libatomic.la │ ├── libc.a │ ├── libc_nano.a │ ├── libg.a │ ├── libg_nano.a │ ├── libgloss.a │ ├── libgloss_nano.a │ ├── libm.a │ ├── libnosys.a │ ├── libsim.a │ ├── libstdc++.a │ ├── libstdc++.a-gdb.py │ ├── libstdc++.la │ ├── libsupc++.a │ ├── libsupc++.la │ ├── nano.specs │ ├── nosys.specs │ └── sim.specs ├── lds ├── bootloader_hi.ld ├── bootloader_lo.ld └── kendryte.ld ├── lib └── CMakeLists.txt └── src ├── bootloader_hi ├── README.md ├── crt.S ├── fpioa.c ├── gpiohs.c ├── include │ ├── encoding.h │ ├── fpioa.h │ ├── gpiohs.h │ ├── platform.h │ ├── sha256.h │ ├── spi.h │ └── sysctl.h ├── main.c └── sha256.c └── bootloader_lo ├── crt.S ├── include ├── encoding.h ├── platform.h ├── spi.h └── sysctl.h └── main.c /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: loboris 2 | custom: https://www.paypal.me/BLovosevic 3 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # DO NOT MODIFY THIS FILE, IT WILL BE OVERRIDE!!! 2 | 3 | # set this will supress some warnings 4 | set(BUILDING_SDK "yes" CACHE INTERNAL "") 5 | 6 | # basic config 7 | if (NOT PROJ) 8 | get_filename_component(PROJ ${CMAKE_CURRENT_BINARY_DIR} DIRECTORY) 9 | get_filename_component(PROJ ${PROJ} NAME) 10 | string(REPLACE " " "_" PROJ ${PROJ}) 11 | message(STATUS "PROJ not set, use ${PROJ} as PROJ. Also, you can set it manually. e.g. -DPROJ=hello_world") 12 | else() 13 | message("PROJ = ${PROJ}") 14 | endif () 15 | cmake_minimum_required(VERSION 3.0) 16 | 17 | include(./cmake/common.cmake) 18 | project(${PROJ} C ASM) 19 | 20 | # config self use headers 21 | include(./cmake/macros.internal.cmake) 22 | header_directories(${SDK_ROOT}/lib) 23 | header_directories(src/${PROJ}) 24 | header_directories(kendryte-standalone-demo/${PROJ}) 25 | # build library first 26 | add_subdirectory(lib) 27 | 28 | # compile project 29 | add_source_files(src/${PROJ}/*.c src/${PROJ}/*.s src/${PROJ}/*.S src/${PROJ}/*.cpp) 30 | add_source_files(kendryte-standalone-demo/${PROJ}/*.c kendryte-standalone-demo/${PROJ}/*.s kendryte-standalone-demo/${PROJ}/*.S kendryte-standalone-demo/${PROJ}/*.cpp) 31 | include(./cmake/executable.cmake) 32 | 33 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright 2020 LoBo (https://github.com/loboris) 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | 5 | you may not use any file from this project except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | -------------------------------------------------------------------------------- /build/CLEAN.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | make clean > /dev/null 2>&1 4 | 5 | rm -rf __pycache__/* > /dev/null 2>&1 6 | rm -rf CMakeFiles/* > /dev/null 2>&1 7 | rm -rf lib/* > /dev/null 2>&1 8 | rmdir __pycache__ > /dev/null 2>&1 9 | rmdir CMakeFiles > /dev/null 2>&1 10 | rmdir lib > /dev/null 2>&1 11 | 12 | rm -f *.cmake > /dev/null 2>&1 13 | rm -f *.txt > /dev/null 2>&1 14 | rm -f *.kfpkg > /dev/null 2>&1 15 | rm -f *.json > /dev/null 2>&1 16 | rm -f bootloader* > /dev/null 2>&1 17 | rm -f Makefile > /dev/null 2>&1 18 | 19 | -------------------------------------------------------------------------------- /build/MicroPython.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/MicroPython.bin -------------------------------------------------------------------------------- /build/bootloader_hi.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/bootloader_hi.bin -------------------------------------------------------------------------------- /build/bootloader_hi.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/bootloader_hi.elf -------------------------------------------------------------------------------- /build/bootloader_lo.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/bootloader_lo.bin -------------------------------------------------------------------------------- /build/bootloader_lo.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/bootloader_lo.elf -------------------------------------------------------------------------------- /build/config.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/config.bin -------------------------------------------------------------------------------- /build/default.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/default.bin -------------------------------------------------------------------------------- /build/dvp_ov.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/dvp_ov.bin -------------------------------------------------------------------------------- /build/kboot.kfpkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/kboot.kfpkg -------------------------------------------------------------------------------- /build/maixpy.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/build/maixpy.bin -------------------------------------------------------------------------------- /cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ### This file is used for build library standalone. 2 | 3 | # set this will supress some warnings 4 | set(BUILDING_SDK "yes" CACHE INTERNAL "") 5 | 6 | # basic config 7 | cmake_minimum_required(VERSION 3.0) 8 | include(./common.cmake) 9 | project(kendryte) 10 | 11 | # config self use headers 12 | include(./macros.internal.cmake) 13 | header_directories(${SDK_ROOT}/lib) 14 | 15 | # include lib make file 16 | include(../lib/CMakeLists.txt) 17 | 18 | # find headers files to INSTALL 19 | file(GLOB_RECURSE LIB_HEADERS 20 | "../lib/*.h" 21 | "../lib/*.hpp" 22 | ) 23 | set_target_properties(kendryte PROPERTIES PUBLIC_HEADER "${LIB_HEADERS}") 24 | 25 | # copy .a file and headers 26 | install(TARGETS kendryte 27 | EXPORT kendryte 28 | ARCHIVE 29 | DESTINATION ${CMAKE_BINARY_DIR}/archive 30 | PUBLIC_HEADER DESTINATION ${CMAKE_BINARY_DIR}/archive/include 31 | ) 32 | 33 | # copy utils files 34 | install(DIRECTORY 35 | ../lds 36 | ../utils 37 | ../cmake 38 | DESTINATION ${CMAKE_BINARY_DIR}/archive 39 | PATTERN "*internal*" EXCLUDE 40 | PATTERN "CMakeLists.txt" EXCLUDE 41 | ) 42 | 43 | # show information 44 | include(./dump-config.cmake) 45 | -------------------------------------------------------------------------------- /cmake/README.md: -------------------------------------------------------------------------------- 1 | prepend `common.cmake` before 2 | 3 | append `executable.cmake` after 4 | -------------------------------------------------------------------------------- /cmake/common.cmake: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0) 2 | 3 | include(${CMAKE_CURRENT_LIST_DIR}/macros.cmake) 4 | 5 | global_set(CMAKE_C_COMPILER_WORKS 1) 6 | global_set(CMAKE_CXX_COMPILER_WORKS 1) 7 | 8 | global_set(CMAKE_SYSTEM_NAME "Generic") 9 | if (NOT CMAKE_BUILD_TYPE) 10 | global_set(CMAKE_BUILD_TYPE Release) 11 | else () 12 | if ((NOT CMAKE_BUILD_TYPE STREQUAL "Debug") AND (NOT CMAKE_BUILD_TYPE STREQUAL "Release")) 13 | message(FATAL_ERROR "CMAKE_BUILD_TYPE must either be Debug or Release instead of ${CMAKE_BUILD_TYPE}") 14 | endif () 15 | endif () 16 | 17 | if (NOT NO_BOOT_LOGGING) 18 | global_set(BOOT_LOGGING -DLOGGING_ENABLED) 19 | endif () 20 | 21 | # - Debug & Release 22 | IF (CMAKE_BUILD_TYPE STREQUAL Debug) 23 | add_definitions(-DDEBUG=1) 24 | ENDIF () 25 | 26 | # definitions in macros 27 | add_definitions(${BOOT_LOGGING} -DCONFIG_LOG_LEVEL=LOG_NONE -DCONFIG_LOG_ENABLE -DCONFIG_LOG_COLORS -DLOG_KERNEL -D__riscv64 -DLV_CONF_INCLUDE_SIMPLE) 28 | 29 | # xtl options 30 | add_definitions(-DTCB_SPAN_NO_EXCEPTIONS -DTCB_SPAN_NO_CONTRACT_CHECKING) 31 | # nncase options 32 | add_definitions(-DNNCASE_TARGET=k210) 33 | 34 | if (NOT SDK_ROOT) 35 | get_filename_component(_SDK_ROOT ${CMAKE_CURRENT_LIST_DIR} DIRECTORY) 36 | global_set(SDK_ROOT ${_SDK_ROOT}) 37 | endif () 38 | 39 | include(${CMAKE_CURRENT_LIST_DIR}/toolchain.cmake) 40 | 41 | include(${CMAKE_CURRENT_LIST_DIR}/compile-flags.cmake) 42 | 43 | include(${CMAKE_CURRENT_LIST_DIR}/fix-9985.cmake) 44 | -------------------------------------------------------------------------------- /cmake/compile-flags.cmake: -------------------------------------------------------------------------------- 1 | add_compile_flags(LD 2 | -nostartfiles 3 | -static 4 | -Wl,--gc-sections 5 | -Wl,-static 6 | -Wl,--start-group 7 | -Wl,--whole-archive 8 | -Wl,--no-whole-archive 9 | -Wl,--end-group 10 | -Wl,-EL 11 | -Wl,--no-relax 12 | -T ${SDK_ROOT}/lds/kendryte.ld 13 | ) 14 | 15 | # C Flags Settings 16 | add_compile_flags(BOTH 17 | -mcmodel=medany 18 | -mabi=lp64f 19 | -march=rv64imafdc 20 | -fno-common 21 | -ffunction-sections 22 | -fdata-sections 23 | -fstrict-volatile-bitfields 24 | -fno-zero-initialized-in-bss 25 | -ffast-math 26 | -fno-math-errno 27 | -fsingle-precision-constant 28 | -fPIC 29 | -O0 30 | -ggdb 31 | ) 32 | 33 | add_compile_flags(C -std=gnu11 -Wno-pointer-to-int-cast) 34 | add_compile_flags(CXX -std=gnu++17) 35 | 36 | if (BUILDING_SDK) 37 | add_compile_flags(BOTH 38 | -Wall 39 | -Werror=all 40 | -Wno-error=unused-function 41 | -Wno-error=unused-but-set-variable 42 | -Wno-error=unused-variable 43 | -Wno-error=deprecated-declarations 44 | -Wno-multichar 45 | -Wextra 46 | -Werror=frame-larger-than=32768 47 | -Wno-unused-parameter 48 | -Wno-sign-compare 49 | -Wno-error=missing-braces 50 | -Wno-error=return-type 51 | -Wno-error=pointer-sign 52 | -Wno-missing-braces 53 | -Wno-strict-aliasing 54 | -Wno-implicit-fallthrough 55 | -Wno-missing-field-initializers 56 | -Wno-int-to-pointer-cast 57 | -Wno-error=comment 58 | -Wno-error=logical-not-parentheses 59 | -Wno-error=duplicate-decl-specifier 60 | -Wno-error=parentheses 61 | ) 62 | 63 | add_compile_flags(C -Wno-old-style-declaration) 64 | else () 65 | add_compile_flags(BOTH -L${SDK_ROOT}/include/) 66 | endif () 67 | 68 | -------------------------------------------------------------------------------- /cmake/dump-config.cmake: -------------------------------------------------------------------------------- 1 | message("") 2 | message("Project: ${PROJECT_NAME}") 3 | message(" LIST_FILE=${CMAKE_PARENT_LIST_FILE}") 4 | message(" TOOLCHAIN=${TOOLCHAIN}") 5 | message(" KENDRYTE_IDE=${KENDRYTE_IDE}") 6 | message(" BUILDING_SDK=${BUILDING_SDK}") 7 | message("") 8 | message(" CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") 9 | message(" CMAKE_C_COMPILER=${CMAKE_C_COMPILER}") 10 | message(" CMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}") 11 | message(" CMAKE_LINKER=${CMAKE_LINKER}") 12 | message(" CMAKE_OBJCOPY=${CMAKE_OBJCOPY}") 13 | message(" CMAKE_OBJDUMP=${CMAKE_OBJDUMP}") 14 | message(" CMAKE_MAKE_PROGRAM=${CMAKE_MAKE_PROGRAM}") 15 | message("") 16 | message(" CMAKE_C_FLAGS=${CMAKE_C_FLAGS}") 17 | message(" CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}") 18 | message(" LDFLAGS=${LDFLAGS}") 19 | message(" CMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}") 20 | message("Makefile created.") 21 | message("") 22 | message("") 23 | -------------------------------------------------------------------------------- /cmake/executable.cmake: -------------------------------------------------------------------------------- 1 | if (NOT BUILDING_SDK) 2 | if(EXISTS ${SDK_ROOT}/libkendryte.a) 3 | add_library(kendryte STATIC IMPORTED) 4 | set_property(TARGET kendryte PROPERTY IMPORTED_LOCATION ${SDK_ROOT}/libkendryte.a) 5 | include_directories(${SDK_ROOT}/include/) 6 | else() 7 | header_directories(${SDK_ROOT}/lib) 8 | add_subdirectory(${SDK_ROOT}/lib) 9 | endif() 10 | endif () 11 | 12 | removeDuplicateSubstring(${CMAKE_C_FLAGS} CMAKE_C_FLAGS) 13 | removeDuplicateSubstring(${CMAKE_CXX_FLAGS} CMAKE_CXX_FLAGS) 14 | 15 | message("SOURCE_FILES=${SOURCE_FILES}") 16 | add_executable(${PROJECT_NAME} ${SOURCE_FILES}) 17 | 18 | 19 | set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C) 20 | 21 | target_link_libraries(${PROJECT_NAME} 22 | -Wl,--start-group 23 | gcc m c 24 | -Wl,--whole-archive 25 | kendryte 26 | -Wl,--no-whole-archive 27 | -Wl,--end-group 28 | ) 29 | 30 | if (EXISTS ${SDK_ROOT}/src/${PROJ}/project.cmake) 31 | include(${SDK_ROOT}/src/${PROJ}/project.cmake) 32 | endif () 33 | 34 | IF(SUFFIX) 35 | SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SUFFIX ${SUFFIX}) 36 | ENDIF() 37 | 38 | # Build target 39 | add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD 40 | COMMAND ${CMAKE_OBJCOPY} --output-format=binary ${CMAKE_BINARY_DIR}/${PROJECT_NAME}${SUFFIX} ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.bin 41 | DEPENDS ${PROJECT_NAME} 42 | COMMENT "Generating .bin file ...") 43 | 44 | # show information 45 | include(${CMAKE_CURRENT_LIST_DIR}/dump-config.cmake) 46 | -------------------------------------------------------------------------------- /cmake/fix-9985.cmake: -------------------------------------------------------------------------------- 1 | ### http://www.cmake.org/Bug/view.php?id=9985 2 | string(REPLACE "-rdynamic" "" CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS}") 3 | string(REPLACE "-rdynamic" "" CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS}") 4 | -------------------------------------------------------------------------------- /cmake/ide.cmake: -------------------------------------------------------------------------------- 1 | FILE(GLOB_RECURSE ASSEMBLY_FILES 2 | "${CMAKE_CURRENT_LIST_DIR}/*.s" 3 | "${CMAKE_CURRENT_LIST_DIR}/*.S" 4 | ) 5 | 6 | SET_PROPERTY(SOURCE ${ASSEMBLY_FILES} PROPERTY LANGUAGE C) 7 | SET_SOURCE_FILES_PROPERTIES(${ASSEMBLY_FILES} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp -D __riscv64") 8 | -------------------------------------------------------------------------------- /cmake/macros.internal.cmake: -------------------------------------------------------------------------------- 1 | # Add lib headers 2 | macro(header_directories parent) 3 | file(GLOB_RECURSE newList ${parent}/*.h) 4 | set(dir_list "") 5 | foreach (file_path ${newList}) 6 | get_filename_component(dir_path ${file_path} DIRECTORY) 7 | set(dir_list ${dir_list} ${dir_path}) 8 | endforeach () 9 | list(REMOVE_DUPLICATES dir_list) 10 | 11 | include_directories(${dir_list}) 12 | endmacro() -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-addr2line: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-addr2line -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-ar -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-as -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-c++filt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-c++filt -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-elfedit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-elfedit -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcc -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcc-8.2.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcc-8.2.0 -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcc-ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcc-ar -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcc-nm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcc-nm -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcc-ranlib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcc-ranlib -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcov -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcov-dump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcov-dump -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gcov-tool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gcov-tool -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-gprof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-gprof -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-ld -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-ld.bfd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-ld.bfd -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-nm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-nm -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-objcopy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-objcopy -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-objdump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-objdump -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-ranlib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-ranlib -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-readelf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-readelf -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-size: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-size -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-strings -------------------------------------------------------------------------------- /kendryte-toolchain/bin/riscv64-unknown-elf-strip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/bin/riscv64-unknown-elf-strip -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtbegin.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtbegin.o -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtend.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtend.o -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crti.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crti.o -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtn.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/crtn.o -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include-fixed/README: -------------------------------------------------------------------------------- 1 | This README file is copied into the directory for GCC-only header files 2 | when fixincludes is run by the makefile for GCC. 3 | 4 | Many of the files in this directory were automatically edited from the 5 | standard system header files by the fixincludes process. They are 6 | system-specific, and will not work on any other kind of system. They 7 | are also not part of GCC. The reason we have to do this is because 8 | GCC requires ANSI C headers and many vendors supply ANSI-incompatible 9 | headers. 10 | 11 | Because this is an automated process, sometimes headers get "fixed" 12 | that do not, strictly speaking, need a fix. As long as nothing is broken 13 | by the process, it is just an unfortunate collateral inconvenience. 14 | We would like to rectify it, if it is not "too inconvenient". 15 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include-fixed/syslimits.h: -------------------------------------------------------------------------------- 1 | /* syslimits.h stands for the system's own limits.h file. 2 | If we can use it ok unmodified, then we install this text. 3 | If fixincludes fixes it, then the fixed version is installed 4 | instead of this text. */ 5 | 6 | #define _GCC_NEXT_LIMITS_H /* tell gcc's limits.h to recurse */ 7 | #include_next 8 | #undef _GCC_NEXT_LIMITS_H 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/gcov.h: -------------------------------------------------------------------------------- 1 | /* GCOV interface routines. 2 | Copyright (C) 2017-2018 Free Software Foundation, Inc. 3 | 4 | This file is part of GCC. 5 | 6 | GCC is free software; you can redistribute it and/or modify it under 7 | the terms of the GNU General Public License as published by the Free 8 | Software Foundation; either version 3, or (at your option) any later 9 | version. 10 | 11 | GCC is distributed in the hope that it will be useful, but WITHOUT ANY 12 | WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 | for more details. 15 | 16 | Under Section 7 of GPL version 3, you are granted additional 17 | permissions described in the GCC Runtime Library Exception, version 18 | 3.1, as published by the Free Software Foundation. 19 | 20 | You should have received a copy of the GNU General Public License and 21 | a copy of the GCC Runtime Library Exception along with this program; 22 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | . */ 24 | 25 | #ifndef GCC_GCOV_H 26 | #define GCC_GCOV_H 27 | 28 | /* Set all counters to zero. */ 29 | 30 | extern void __gcov_reset (void); 31 | 32 | /* Write profile information to a file. */ 33 | 34 | extern void __gcov_dump (void); 35 | 36 | /* Write profile information to a file and reset counters to zero. 37 | The function does operations under a mutex. */ 38 | 39 | extern void __gcov_flush (void); 40 | 41 | #endif /* GCC_GCOV_H */ 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/iso646.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2018 Free Software Foundation, Inc. 2 | 3 | This file is part of GCC. 4 | 5 | GCC is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | GCC 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 | Under Section 7 of GPL version 3, you are granted additional 16 | permissions described in the GCC Runtime Library Exception, version 17 | 3.1, as published by the Free Software Foundation. 18 | 19 | You should have received a copy of the GNU General Public License and 20 | a copy of the GCC Runtime Library Exception along with this program; 21 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 22 | . */ 23 | 24 | /* 25 | * ISO C Standard: 7.9 Alternative spellings 26 | */ 27 | 28 | #ifndef _ISO646_H 29 | #define _ISO646_H 30 | 31 | #ifndef __cplusplus 32 | #define and && 33 | #define and_eq &= 34 | #define bitand & 35 | #define bitor | 36 | #define compl ~ 37 | #define not ! 38 | #define not_eq != 39 | #define or || 40 | #define or_eq |= 41 | #define xor ^ 42 | #define xor_eq ^= 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/stdalign.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2011-2018 Free Software Foundation, Inc. 2 | 3 | This file is part of GCC. 4 | 5 | GCC is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | GCC 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 | Under Section 7 of GPL version 3, you are granted additional 16 | permissions described in the GCC Runtime Library Exception, version 17 | 3.1, as published by the Free Software Foundation. 18 | 19 | You should have received a copy of the GNU General Public License and 20 | a copy of the GCC Runtime Library Exception along with this program; 21 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 22 | . */ 23 | 24 | /* ISO C1X: 7.15 Alignment . */ 25 | 26 | #ifndef _STDALIGN_H 27 | #define _STDALIGN_H 28 | 29 | #ifndef __cplusplus 30 | 31 | #define alignas _Alignas 32 | #define alignof _Alignof 33 | 34 | #define __alignas_is_defined 1 35 | #define __alignof_is_defined 1 36 | 37 | #endif 38 | 39 | #endif /* stdalign.h */ 40 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/stdbool.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1998-2018 Free Software Foundation, Inc. 2 | 3 | This file is part of GCC. 4 | 5 | GCC is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | GCC 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 | Under Section 7 of GPL version 3, you are granted additional 16 | permissions described in the GCC Runtime Library Exception, version 17 | 3.1, as published by the Free Software Foundation. 18 | 19 | You should have received a copy of the GNU General Public License and 20 | a copy of the GCC Runtime Library Exception along with this program; 21 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 22 | . */ 23 | 24 | /* 25 | * ISO C Standard: 7.16 Boolean type and values 26 | */ 27 | 28 | #ifndef _STDBOOL_H 29 | #define _STDBOOL_H 30 | 31 | #ifndef __cplusplus 32 | 33 | #define bool _Bool 34 | #define true 1 35 | #define false 0 36 | 37 | #else /* __cplusplus */ 38 | 39 | /* Supporting _Bool in C++ is a GCC extension. */ 40 | #define _Bool bool 41 | 42 | #if __cplusplus < 201103L 43 | /* Defining these macros in C++98 is a GCC extension. */ 44 | #define bool bool 45 | #define false false 46 | #define true true 47 | #endif 48 | 49 | #endif /* __cplusplus */ 50 | 51 | /* Signal that all the definitions are present. */ 52 | #define __bool_true_false_are_defined 1 53 | 54 | #endif /* stdbool.h */ 55 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/stdint.h: -------------------------------------------------------------------------------- 1 | #ifndef _GCC_WRAP_STDINT_H 2 | #if __STDC_HOSTED__ 3 | # if defined __cplusplus && __cplusplus >= 201103L 4 | # undef __STDC_LIMIT_MACROS 5 | # define __STDC_LIMIT_MACROS 6 | # undef __STDC_CONSTANT_MACROS 7 | # define __STDC_CONSTANT_MACROS 8 | # endif 9 | # include_next 10 | #else 11 | # include "stdint-gcc.h" 12 | #endif 13 | #define _GCC_WRAP_STDINT_H 14 | #endif 15 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/stdnoreturn.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2011-2018 Free Software Foundation, Inc. 2 | 3 | This file is part of GCC. 4 | 5 | GCC is free software; you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3, or (at your option) 8 | any later version. 9 | 10 | GCC 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 | Under Section 7 of GPL version 3, you are granted additional 16 | permissions described in the GCC Runtime Library Exception, version 17 | 3.1, as published by the Free Software Foundation. 18 | 19 | You should have received a copy of the GNU General Public License and 20 | a copy of the GCC Runtime Library Exception along with this program; 21 | see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 22 | . */ 23 | 24 | /* ISO C1X: 7.23 _Noreturn . */ 25 | 26 | #ifndef _STDNORETURN_H 27 | #define _STDNORETURN_H 28 | 29 | #ifndef __cplusplus 30 | 31 | #define noreturn _Noreturn 32 | 33 | #endif 34 | 35 | #endif /* stdnoreturn.h */ 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/include/varargs.h: -------------------------------------------------------------------------------- 1 | #ifndef _VARARGS_H 2 | #define _VARARGS_H 3 | 4 | #error "GCC no longer implements ." 5 | #error "Revise your code to use ." 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/fixinc_list: -------------------------------------------------------------------------------- 1 | ; 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/gsyslimits.h: -------------------------------------------------------------------------------- 1 | /* syslimits.h stands for the system's own limits.h file. 2 | If we can use it ok unmodified, then we install this text. 3 | If fixincludes fixes it, then the fixed version is installed 4 | instead of this text. */ 5 | 6 | #define _GCC_NEXT_LIMITS_H /* tell gcc's limits.h to recurse */ 7 | #include_next 8 | #undef _GCC_NEXT_LIMITS_H 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/include/README: -------------------------------------------------------------------------------- 1 | This README file is copied into the directory for GCC-only header files 2 | when fixincludes is run by the makefile for GCC. 3 | 4 | Many of the files in this directory were automatically edited from the 5 | standard system header files by the fixincludes process. They are 6 | system-specific, and will not work on any other kind of system. They 7 | are also not part of GCC. The reason we have to do this is because 8 | GCC requires ANSI C headers and many vendors supply ANSI-incompatible 9 | headers. 10 | 11 | Because this is an automated process, sometimes headers get "fixed" 12 | that do not, strictly speaking, need a fix. As long as nothing is broken 13 | by the process, it is just an unfortunate collateral inconvenience. 14 | We would like to rectify it, if it is not "too inconvenient". 15 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/macro_list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/macro_list -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/install-tools/mkheaders.conf: -------------------------------------------------------------------------------- 1 | SYSTEM_HEADER_DIR="/opt/kendryte-toolchain/riscv64-unknown-elf${sysroot_headers_suffix}/include" 2 | OTHER_FIXINCLUDES_DIRS="" 3 | STMP_FIXINC="stmp-fixinc" 4 | -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/libgcc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/libgcc.a -------------------------------------------------------------------------------- /kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/libgcov.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/lib/gcc/riscv64-unknown-elf/8.2.0/libgcov.a -------------------------------------------------------------------------------- /kendryte-toolchain/libexec/gcc/riscv64-unknown-elf/8.2.0/cc1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/libexec/gcc/riscv64-unknown-elf/8.2.0/cc1 -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/ar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/ar -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/as: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/as -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/ld -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/ld.bfd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/ld.bfd -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/nm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/nm -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/objcopy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/objcopy -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/objdump: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/objdump -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/ranlib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/ranlib -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/readelf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/readelf -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/bin/strip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/bin/strip -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/_newlib_version.h: -------------------------------------------------------------------------------- 1 | /* _newlib_version.h. Generated from _newlib_version.hin by configure. */ 2 | /* Version macros for internal and downstream use. */ 3 | #ifndef _NEWLIB_VERSION_H__ 4 | #define _NEWLIB_VERSION_H__ 1 5 | 6 | #define _NEWLIB_VERSION "3.0.0" 7 | #define __NEWLIB__ 3 8 | #define __NEWLIB_MINOR__ 0 9 | #define __NEWLIB_PATCHLEVEL__ 0 10 | 11 | #endif /* !_NEWLIB_VERSION_H__ */ 12 | 13 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/_syslist.h: -------------------------------------------------------------------------------- 1 | /* internal use only -- mapping of "system calls" for libraries that lose 2 | and only provide C names, so that we end up in violation of ANSI */ 3 | #ifndef __SYSLIST_H 4 | #define __SYSLIST_H 5 | 6 | #ifdef MISSING_SYSCALL_NAMES 7 | #define _close close 8 | #define _execve execve 9 | #define _fcntl fcntl 10 | #define _fork fork 11 | #define _fstat fstat 12 | #define _getpid getpid 13 | #define _gettimeofday gettimeofday 14 | #define _isatty isatty 15 | #define _kill kill 16 | #define _link link 17 | #define _lseek lseek 18 | #define _mkdir mkdir 19 | #define _open open 20 | #define _read read 21 | #define _sbrk sbrk 22 | #define _stat stat 23 | #define _times times 24 | #define _unlink unlink 25 | #define _wait wait 26 | #define _write write 27 | #endif /* MISSING_SYSCALL_NAMES */ 28 | 29 | #if defined MISSING_SYSCALL_NAMES || !defined HAVE_OPENDIR 30 | /* If the system call interface is missing opendir, readdir, and 31 | closedir, there is an implementation of these functions in 32 | libc/posix that is implemented using open, getdents, and close. 33 | Note, these functions are currently not in the libc/syscalls 34 | directory. */ 35 | #define _opendir opendir 36 | #define _readdir readdir 37 | #define _closedir closedir 38 | #endif /* MISSING_SYSCALL_NAMES || !HAVE_OPENDIR */ 39 | 40 | #endif /* !__SYSLIST_H_ */ 41 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/alloca.h: -------------------------------------------------------------------------------- 1 | /* libc/include/alloca.h - Allocate memory on stack */ 2 | 3 | /* Written 2000 by Werner Almesberger */ 4 | /* Rearranged for general inclusion by stdlib.h. 5 | 2001, Corinna Vinschen */ 6 | 7 | #ifndef _NEWLIB_ALLOCA_H 8 | #define _NEWLIB_ALLOCA_H 9 | 10 | #include "_ansi.h" 11 | #include 12 | 13 | #undef alloca 14 | 15 | #ifdef __GNUC__ 16 | #define alloca(size) __builtin_alloca(size) 17 | #else 18 | void * alloca (size_t); 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/argz.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. 2 | * 3 | * Permission to use, copy, modify, and distribute this software 4 | * is freely granted, provided that this notice is preserved. 5 | */ 6 | 7 | #ifndef _ARGZ_H_ 8 | #define _ARGZ_H_ 9 | 10 | #include 11 | #include 12 | 13 | #include "_ansi.h" 14 | 15 | _BEGIN_STD_C 16 | 17 | /* The newlib implementation of these functions assumes that sizeof(char) == 1. */ 18 | error_t argz_create (char *const argv[], char **argz, size_t *argz_len); 19 | error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len); 20 | size_t argz_count (const char *argz, size_t argz_len); 21 | void argz_extract (char *argz, size_t argz_len, char **argv); 22 | void argz_stringify (char *argz, size_t argz_len, int sep); 23 | error_t argz_add (char **argz, size_t *argz_len, const char *str); 24 | error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep); 25 | error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len); 26 | error_t argz_delete (char **argz, size_t *argz_len, char *entry); 27 | error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry); 28 | char * argz_next (char *argz, size_t argz_len, const char *entry); 29 | error_t argz_replace (char **argz, size_t *argz_len, const char *str, const char *with, unsigned *replace_count); 30 | 31 | _END_STD_C 32 | 33 | #endif /* _ARGZ_H_ */ 34 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/assert.h: -------------------------------------------------------------------------------- 1 | /* 2 | assert.h 3 | */ 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | #include "_ansi.h" 10 | 11 | #undef assert 12 | 13 | #ifdef NDEBUG /* required by ANSI standard */ 14 | # define assert(__e) ((void)0) 15 | #else 16 | # define assert(__e) ((__e) ? (void)0 : __assert_func (__FILE__, __LINE__, \ 17 | __ASSERT_FUNC, #__e)) 18 | 19 | # ifndef __ASSERT_FUNC 20 | /* Use g++'s demangled names in C++. */ 21 | # if defined __cplusplus && defined __GNUC__ 22 | # define __ASSERT_FUNC __PRETTY_FUNCTION__ 23 | 24 | /* C99 requires the use of __func__. */ 25 | # elif __STDC_VERSION__ >= 199901L 26 | # define __ASSERT_FUNC __func__ 27 | 28 | /* Older versions of gcc don't have __func__ but can use __FUNCTION__. */ 29 | # elif __GNUC__ >= 2 30 | # define __ASSERT_FUNC __FUNCTION__ 31 | 32 | /* failed to detect __func__ support. */ 33 | # else 34 | # define __ASSERT_FUNC ((char *) 0) 35 | # endif 36 | # endif /* !__ASSERT_FUNC */ 37 | #endif /* !NDEBUG */ 38 | 39 | void __assert (const char *, int, const char *) 40 | _ATTRIBUTE ((__noreturn__)); 41 | void __assert_func (const char *, int, const char *, const char *) 42 | _ATTRIBUTE ((__noreturn__)); 43 | 44 | #if __STDC_VERSION__ >= 201112L && !defined __cplusplus 45 | # define static_assert _Static_assert 46 | #endif 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/bits/c++0x_warning.h: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 2 | // 3 | // This file is part of the GNU ISO C++ Library. This library is free 4 | // software; you can redistribute it and/or modify it under the 5 | // terms of the GNU General Public License as published by the 6 | // Free Software Foundation; either version 3, or (at your option) 7 | // any later version. 8 | 9 | // This library is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | // GNU General Public License for more details. 13 | 14 | // Under Section 7 of GPL version 3, you are granted additional 15 | // permissions described in the GCC Runtime Library Exception, version 16 | // 3.1, as published by the Free Software Foundation. 17 | 18 | // You should have received a copy of the GNU General Public License and 19 | // a copy of the GCC Runtime Library Exception along with this program; 20 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 21 | // . 22 | 23 | /** @file bits/c++0x_warning.h 24 | * This is an internal header file, included by other library headers. 25 | * Do not attempt to use it directly. @headername{iosfwd} 26 | */ 27 | 28 | #ifndef _CXX0X_WARNING_H 29 | #define _CXX0X_WARNING_H 1 30 | 31 | #if __cplusplus < 201103L 32 | #error This file requires compiler and library support \ 33 | for the ISO C++ 2011 standard. This support must be enabled \ 34 | with the -std=c++11 or -std=gnu++11 compiler options. 35 | #endif 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/bits/cxxabi_forced.h: -------------------------------------------------------------------------------- 1 | // cxxabi.h subset for cancellation -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of GCC. 6 | // 7 | // GCC is free software; you can redistribute it and/or modify 8 | // it under the terms of the GNU General Public License as published by 9 | // the Free Software Foundation; either version 3, or (at your option) 10 | // any later version. 11 | // 12 | // GCC is distributed in the hope that it will be useful, 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | // GNU General Public License for more details. 16 | // 17 | // Under Section 7 of GPL version 3, you are granted additional 18 | // permissions described in the GCC Runtime Library Exception, version 19 | // 3.1, as published by the Free Software Foundation. 20 | 21 | // You should have received a copy of the GNU General Public License and 22 | // a copy of the GCC Runtime Library Exception along with this program; 23 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 24 | // . 25 | 26 | /** @file bits/cxxabi_forced.h 27 | * This is an internal header file, included by other library headers. 28 | * Do not attempt to use it directly. @headername{cxxabi.h} 29 | */ 30 | 31 | #ifndef _CXXABI_FORCED_H 32 | #define _CXXABI_FORCED_H 1 33 | 34 | #pragma GCC system_header 35 | 36 | #pragma GCC visibility push(default) 37 | 38 | #ifdef __cplusplus 39 | namespace __cxxabiv1 40 | { 41 | /** 42 | * @brief Thrown as part of forced unwinding. 43 | * @ingroup exceptions 44 | * 45 | * A magic placeholder class that can be caught by reference to 46 | * recognize forced unwinding. 47 | */ 48 | class __forced_unwind 49 | { 50 | virtual ~__forced_unwind() throw(); 51 | 52 | // Prevent catch by value. 53 | virtual void __pure_dummy() = 0; 54 | }; 55 | } 56 | #endif // __cplusplus 57 | 58 | #pragma GCC visibility pop 59 | 60 | #endif // __CXXABI_FORCED_H 61 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/bits/exception_defines.h: -------------------------------------------------------------------------------- 1 | // -fno-exceptions Support -*- C++ -*- 2 | 3 | // Copyright (C) 2001-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file bits/exception_defines.h 26 | * This is an internal header file, included by other library headers. 27 | * Do not attempt to use it directly. @headername{exception} 28 | */ 29 | 30 | #ifndef _EXCEPTION_DEFINES_H 31 | #define _EXCEPTION_DEFINES_H 1 32 | 33 | #if ! __cpp_exceptions 34 | // Iff -fno-exceptions, transform error handling code to work without it. 35 | # define __try if (true) 36 | # define __catch(X) if (false) 37 | # define __throw_exception_again 38 | #else 39 | // Else proceed normally. 40 | # define __try try 41 | # define __catch(X) catch(X) 42 | # define __throw_exception_again throw 43 | #endif 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/cassert: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- forwarding header. 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file cassert 26 | * This is a Standard C++ Library file. You should @c \#include this file 27 | * in your programs, rather than any of the @a *.h implementation files. 28 | * 29 | * This is the C++ version of the Standard C Library header @c assert.h, 30 | * and its contents are (mostly) the same as that header, but are all 31 | * contained in the namespace @c std (except for names which are defined 32 | * as macros in C). 33 | */ 34 | 35 | // 36 | // ISO C++ 14882: 19.2 Assertions 37 | // 38 | 39 | // No include guards on this header... 40 | 41 | #pragma GCC system_header 42 | 43 | #include 44 | #include 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ccomplex: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/ccomplex 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #pragma GCC system_header 30 | 31 | #ifndef _GLIBCXX_CCOMPLEX 32 | #define _GLIBCXX_CCOMPLEX 1 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #endif 37 | 38 | extern "C++" { 39 | #include 40 | } 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/cerrno: -------------------------------------------------------------------------------- 1 | // The -*- C++ -*- forwarding header. 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file cerrno 26 | * This is a Standard C++ Library file. You should @c \#include this file 27 | * in your programs, rather than any of the @a *.h implementation files. 28 | * 29 | * This is the C++ version of the Standard C Library header @c errno.h, 30 | * and its contents are (mostly) the same as that header, but are all 31 | * contained in the namespace @c std (except for names which are defined 32 | * as macros in C). 33 | */ 34 | 35 | // 36 | // ISO C++ 14882: 19.3 Error numbers 37 | // 38 | 39 | #pragma GCC system_header 40 | 41 | #include 42 | #include 43 | 44 | #ifndef _GLIBCXX_CERRNO 45 | #define _GLIBCXX_CERRNO 1 46 | 47 | // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998 48 | #ifndef errno 49 | #define errno errno 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ciso646: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- forwarding header. 2 | 3 | // Copyright (C) 2001-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file ciso646 26 | * This is a Standard C++ Library file. You should @c \#include this file 27 | * in your programs, rather than any of the @a *.h implementation files. 28 | * 29 | * This is the C++ version of the Standard C Library header @c iso646.h, 30 | * which is empty in C++. 31 | */ 32 | #ifndef _GLIBCXX_CISO646 33 | #define _GLIBCXX_CISO646 34 | 35 | #pragma GCC system_header 36 | 37 | #include 38 | #endif 39 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/complex.h: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- compatibility header. 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file complex.h 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #include 30 | 31 | #if __cplusplus >= 201103L 32 | # include 33 | #endif 34 | 35 | #if __cplusplus >= 201103L && defined(__STRICT_ANSI__) 36 | // For strict modes do not include the C library's , see PR 82417. 37 | #elif _GLIBCXX_HAVE_COMPLEX_H 38 | # include_next 39 | # ifdef _GLIBCXX_COMPLEX 40 | // See PR56111, keep the macro in C++03 if possible. 41 | # undef complex 42 | # endif 43 | #endif 44 | 45 | #ifndef _GLIBCXX_COMPLEX_H 46 | #define _GLIBCXX_COMPLEX_H 1 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/csignal: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- forwarding header. 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file csignal 26 | * This is a Standard C++ Library file. You should @c \#include this file 27 | * in your programs, rather than any of the @a *.h implementation files. 28 | * 29 | * This is the C++ version of the Standard C Library header @c signal.h, 30 | * and its contents are (mostly) the same as that header, but are all 31 | * contained in the namespace @c std (except for names which are defined 32 | * as macros in C). 33 | */ 34 | 35 | // 36 | // ISO C++ 14882: 20.4.6 C library 37 | // 38 | 39 | #pragma GCC system_header 40 | 41 | #include 42 | #include 43 | 44 | #ifndef _GLIBCXX_CSIGNAL 45 | #define _GLIBCXX_CSIGNAL 1 46 | 47 | // Get rid of those macros defined in in lieu of real functions. 48 | #undef raise 49 | 50 | namespace std 51 | { 52 | using ::sig_atomic_t; 53 | using ::signal; 54 | using ::raise; 55 | } // namespace std 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/cstdalign: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2011-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/cstdalign 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #pragma GCC system_header 30 | 31 | #ifndef _GLIBCXX_CSTDALIGN 32 | #define _GLIBCXX_CSTDALIGN 1 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | # include 38 | # if _GLIBCXX_HAVE_STDALIGN_H 39 | # include 40 | # endif 41 | #endif 42 | 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/cstdarg: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- forwarding header. 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/cstdarg 26 | * This is a Standard C++ Library file. You should @c \#include this file 27 | * in your programs, rather than any of the @a *.h implementation files. 28 | * 29 | * This is the C++ version of the Standard C Library header @c stdarg.h, 30 | * and its contents are (mostly) the same as that header, but are all 31 | * contained in the namespace @c std (except for names which are defined 32 | * as macros in C). 33 | */ 34 | 35 | // 36 | // ISO C++ 14882: 20.4.6 C library 37 | // 38 | 39 | #pragma GCC system_header 40 | 41 | #undef __need___va_list 42 | #include 43 | #include 44 | 45 | #ifndef _GLIBCXX_CSTDARG 46 | #define _GLIBCXX_CSTDARG 1 47 | 48 | // Adhere to section 17.4.1.2 clause 5 of ISO 14882:1998 49 | #ifndef va_end 50 | #define va_end(ap) va_end (ap) 51 | #endif 52 | 53 | namespace std 54 | { 55 | using ::va_list; 56 | } // namespace std 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/cstdbool: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/cstdbool 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #pragma GCC system_header 30 | 31 | #ifndef _GLIBCXX_CSTDBOOL 32 | #define _GLIBCXX_CSTDBOOL 1 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | # include 38 | # if _GLIBCXX_HAVE_STDBOOL_H 39 | # include 40 | # endif 41 | #endif 42 | 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ctgmath: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/ctgmath 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #pragma GCC system_header 30 | 31 | #ifndef _GLIBCXX_CTGMATH 32 | #define _GLIBCXX_CTGMATH 1 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | # include 38 | extern "C++" { 39 | # include 40 | } 41 | #endif 42 | 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/debug/map: -------------------------------------------------------------------------------- 1 | // Debugging map/multimap implementation -*- C++ -*- 2 | 3 | // Copyright (C) 2003-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file debug/map 26 | * This file is a GNU debug extension to the Standard C++ Library. 27 | */ 28 | 29 | #ifndef _GLIBCXX_DEBUG_MAP 30 | #define _GLIBCXX_DEBUG_MAP 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | #include 36 | #include 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/debug/set: -------------------------------------------------------------------------------- 1 | // Debugging set/multiset implementation -*- C++ -*- 2 | 3 | // Copyright (C) 2003-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file debug/set 26 | * This file is a GNU debug extension to the Standard C++ Library. 27 | */ 28 | 29 | #ifndef _GLIBCXX_DEBUG_SET 30 | #define _GLIBCXX_DEBUG_SET 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | #include 36 | #include 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/experimental/utility: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2015-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file experimental/utility 26 | * This is a TS C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_EXPERIMENTAL_UTILITY 30 | #define _GLIBCXX_EXPERIMENTAL_UTILITY 1 31 | 32 | #include 33 | #include 34 | #include 35 | 36 | namespace std { 37 | _GLIBCXX_BEGIN_NAMESPACE_VERSION 38 | 39 | namespace experimental { 40 | inline namespace fundamentals_v2 { 41 | // 3.1.2, erased-type placeholder 42 | using erased_type = std::__erased_type; 43 | } // namespace fundamentals_v2 44 | } // namespace experimental 45 | 46 | _GLIBCXX_END_NAMESPACE_VERSION 47 | } // namespace std 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/cc_hash_table_map_/find_store_hash_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file cc_hash_table_map_/find_store_hash_fn_imps.hpp 38 | * Contains implementations of cc_ht_map_'s find related functions, 39 | * when the hash value is stored. 40 | */ 41 | 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/cc_hash_table_map_/insert_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file cc_hash_table_map_/insert_fn_imps.hpp 38 | * Contains implementations of cc_ht_map_'s insert related functions. 39 | */ 40 | 41 | #include 42 | #include 43 | 44 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/gp_hash_table_map_/find_store_hash_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file gp_hash_table_map_/find_store_hash_fn_imps.hpp 38 | * Contains implementations of gp_ht_map_'s insert related functions, 39 | * when the hash value is stored. 40 | */ 41 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/rb_tree_map_/find_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file rb_tree_map_/find_fn_imps.hpp 38 | * Contains an implementation for rb_tree_. 39 | */ 40 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/rb_tree_map_/info_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file rb_tree_map_/info_fn_imps.hpp 38 | * Contains an implementation for rb_tree_. 39 | */ 40 | 41 | PB_DS_CLASS_T_DEC 42 | inline bool 43 | PB_DS_CLASS_C_DEC:: 44 | is_effectively_black(const node_pointer p_nd) 45 | { return (p_nd == 0 || !p_nd->m_red); } 46 | 47 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ext/pb_ds/detail/splay_tree_/info_fn_imps.hpp: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. 26 | 27 | // Permission to use, copy, modify, sell, and distribute this software 28 | // is hereby granted without fee, provided that the above copyright 29 | // notice appears in all copies, and that both that copyright notice 30 | // and this permission notice appear in supporting documentation. None 31 | // of the above authors, nor IBM Haifa Research Laboratories, make any 32 | // representation about the suitability of this software for any 33 | // purpose. It is provided "as is" without express or implied 34 | // warranty. 35 | 36 | /** 37 | * @file splay_tree_/info_fn_imps.hpp 38 | * Contains an implementation. 39 | */ 40 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/filesystem: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2014-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file filesystem 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_FILESYSTEM 30 | #define _GLIBCXX_FILESYSTEM 1 31 | 32 | #pragma GCC system_header 33 | 34 | #if __cplusplus >= 201703L 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | 41 | #define __cpp_lib_filesystem 201703 42 | 43 | #endif // C++17 44 | 45 | #endif // _GLIBCXX_FILESYSTEM 46 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/forward_list: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2008-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/forward_list 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_FORWARD_LIST 30 | #define _GLIBCXX_FORWARD_LIST 1 31 | 32 | #pragma GCC system_header 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | 38 | #include 39 | #include 40 | #include 41 | 42 | #ifdef _GLIBCXX_DEBUG 43 | # include 44 | #endif 45 | 46 | #ifdef _GLIBCXX_PROFILE 47 | # include 48 | #endif 49 | 50 | #endif // C++11 51 | 52 | #endif // _GLIBCXX_FORWARD_LIST 53 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/ios: -------------------------------------------------------------------------------- 1 | // Iostreams base classes -*- C++ -*- 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/ios 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | // 30 | // ISO C++ 14882: 27.4 Iostreams base classes 31 | // 32 | 33 | #ifndef _GLIBCXX_IOS 34 | #define _GLIBCXX_IOS 1 35 | 36 | #pragma GCC system_header 37 | 38 | #include 39 | #include // For ios_base::failure 40 | #include // For char_traits, streamoff, streamsize, fpos 41 | #include // For class locale 42 | #include // For ios_base declarations. 43 | #include 44 | #include 45 | 46 | #endif /* _GLIBCXX_IOS */ 47 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/locale: -------------------------------------------------------------------------------- 1 | // Locale support -*- C++ -*- 2 | 3 | // Copyright (C) 1997-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | // 26 | // ISO C++ 14882: 22.1 Locales 27 | // 28 | 29 | /** @file include/locale 30 | * This is a Standard C++ Library header. 31 | */ 32 | 33 | #ifndef _GLIBCXX_LOCALE 34 | #define _GLIBCXX_LOCALE 1 35 | 36 | #pragma GCC system_header 37 | 38 | #include 39 | #include 40 | #include 41 | #include 42 | #if __cplusplus >= 201103L 43 | # include 44 | #endif 45 | 46 | #endif /* _GLIBCXX_LOCALE */ 47 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/parallel/algorithm: -------------------------------------------------------------------------------- 1 | // Algorithm extensions -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file parallel/algorithm 26 | * This file is a GNU extension to the Standard C++ Library. 27 | */ 28 | 29 | #ifndef _PARALLEL_ALGORITHM 30 | #define _PARALLEL_ALGORITHM 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | #include 36 | #include 37 | #include 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/parallel/basic_iterator.h: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file parallel/basic_iterator.h 26 | * @brief Includes the original header files concerned with iterators 27 | * except for stream iterators. 28 | * This file is a GNU parallel extension to the Standard C++ Library. 29 | */ 30 | 31 | // Written by Johannes Singler. 32 | 33 | #ifndef _GLIBCXX_PARALLEL_BASIC_ITERATOR_H 34 | #define _GLIBCXX_PARALLEL_BASIC_ITERATOR_H 1 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | 41 | #endif /* _GLIBCXX_PARALLEL_BASIC_ITERATOR_H */ 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/parallel/parallel.h: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the terms 7 | // of the GNU General Public License as published by the Free Software 8 | // Foundation; either version 3, or (at your option) any later 9 | // version. 10 | 11 | // This library is distributed in the hope that it will be useful, but 12 | // WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | // General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file parallel/parallel.h 26 | * @brief End-user include file. Provides advanced settings and 27 | * tuning options. 28 | * This file is a GNU parallel extension to the Standard C++ Library. 29 | */ 30 | 31 | // Written by Felix Putze and Johannes Singler. 32 | 33 | #ifndef _GLIBCXX_PARALLEL_PARALLEL_H 34 | #define _GLIBCXX_PARALLEL_PARALLEL_H 1 35 | 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | 42 | #endif /* _GLIBCXX_PARALLEL_PARALLEL_H */ 43 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/profile/base.h: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2009-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | // 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License along 21 | // with this library; see the file COPYING3. If not see 22 | // . 23 | 24 | /** @file profile/base.h 25 | * @brief Sequential helper functions. 26 | * This file is a GNU profile extension to the Standard C++ Library. 27 | */ 28 | 29 | // Written by Lixia Liu 30 | 31 | #ifndef _GLIBCXX_PROFILE_BASE_H 32 | #define _GLIBCXX_PROFILE_BASE_H 1 33 | 34 | #include 35 | 36 | // Profiling mode namespaces. 37 | 38 | /** 39 | * @namespace std::__profile 40 | * @brief GNU profile code, replaces standard behavior with profile behavior. 41 | */ 42 | namespace std _GLIBCXX_VISIBILITY(default) 43 | { 44 | namespace __profile { } 45 | } 46 | 47 | /** 48 | * @namespace __gnu_profile 49 | * @brief GNU profile code for public use. 50 | */ 51 | namespace __gnu_profile 52 | { 53 | // Import all the profile versions of components in namespace std. 54 | using namespace std::__profile; 55 | } 56 | 57 | 58 | #endif /* _GLIBCXX_PROFILE_BASE_H */ 59 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/profile/map: -------------------------------------------------------------------------------- 1 | // Profiling map/multimap implementation -*- C++ -*- 2 | 3 | // Copyright (C) 2009-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | // 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License along 21 | // with this library; see the file COPYING3. If not see 22 | // . 23 | 24 | /** @file profile/map 25 | * This file is a GNU profile extension to the Standard C++ Library. 26 | */ 27 | 28 | #ifndef _GLIBCXX_PROFILE_MAP 29 | #define _GLIBCXX_PROFILE_MAP 1 30 | 31 | #include 32 | #include 33 | #include 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/profile/set: -------------------------------------------------------------------------------- 1 | // Profiling set/multiset implementation -*- C++ -*- 2 | 3 | // Copyright (C) 2009-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | // 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License along 21 | // with this library; see the file COPYING3. If not see 22 | // . 23 | 24 | /** @file profile/set 25 | * This file is a GNU profile extension to the Standard C++ Library. 26 | */ 27 | 28 | #ifndef _GLIBCXX_PROFILE_SET 29 | #define _GLIBCXX_PROFILE_SET 1 30 | 31 | #include 32 | #include 33 | #include 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/random: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/random 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_RANDOM 30 | #define _GLIBCXX_RANDOM 1 31 | 32 | #pragma GCC system_header 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | 46 | #ifdef _GLIBCXX_USE_C99_STDINT_TR1 47 | 48 | #include // For uint_fast32_t, uint_fast64_t, uint_least32_t 49 | #include 50 | #include 51 | #include 52 | 53 | #endif // _GLIBCXX_USE_C99_STDINT_TR1 54 | 55 | #endif // C++11 56 | 57 | #endif // _GLIBCXX_RANDOM 58 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/bits/atomic_word.h: -------------------------------------------------------------------------------- 1 | // Low-level type for atomic operations -*- C++ -*- 2 | 3 | // Copyright (C) 2004-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file atomic_word.h 26 | * This file is a GNU extension to the Standard C++ Library. 27 | */ 28 | 29 | #ifndef _GLIBCXX_ATOMIC_WORD_H 30 | #define _GLIBCXX_ATOMIC_WORD_H 1 31 | 32 | typedef int _Atomic_word; 33 | 34 | 35 | // This is a memory order acquire fence. 36 | #define _GLIBCXX_READ_MEM_BARRIER __atomic_thread_fence (__ATOMIC_ACQUIRE) 37 | // This is a memory order release fence. 38 | #define _GLIBCXX_WRITE_MEM_BARRIER __atomic_thread_fence (__ATOMIC_RELEASE) 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/bits/c++io.h: -------------------------------------------------------------------------------- 1 | // Underlying io library details -*- C++ -*- 2 | 3 | // Copyright (C) 2000-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file bits/c++io.h 26 | * This is an internal header file, included by other library headers. 27 | * Do not attempt to use it directly. @headername{ios} 28 | */ 29 | 30 | // c_io_stdio.h - Defines for using "C" stdio.h 31 | 32 | #ifndef _GLIBCXX_CXX_IO_H 33 | #define _GLIBCXX_CXX_IO_H 1 34 | 35 | #include 36 | #include 37 | 38 | namespace std _GLIBCXX_VISIBILITY(default) 39 | { 40 | _GLIBCXX_BEGIN_NAMESPACE_VERSION 41 | 42 | typedef __gthread_mutex_t __c_lock; 43 | 44 | // for basic_file.h 45 | typedef FILE __c_file; 46 | 47 | _GLIBCXX_END_NAMESPACE_VERSION 48 | } // namespace 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/bits/cpu_defines.h: -------------------------------------------------------------------------------- 1 | // Specific definitions for generic platforms -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file bits/cpu_defines.h 26 | * This is an internal header file, included by other library headers. 27 | * Do not attempt to use it directly. @headername{iosfwd} 28 | */ 29 | 30 | #ifndef _GLIBCXX_CPU_DEFINES 31 | #define _GLIBCXX_CPU_DEFINES 1 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/bits/opt_random.h: -------------------------------------------------------------------------------- 1 | // Optimizations for random number handling, generic version -*- C++ -*- 2 | 3 | // Copyright (C) 2012-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file bits/opt_random.h 26 | * This is an internal header file, included by other library headers. 27 | * Do not attempt to use it directly. @headername{random} 28 | */ 29 | 30 | #ifndef _BITS_OPT_RANDOM_H 31 | #define _BITS_OPT_RANDOM_H 1 32 | 33 | #pragma GCC system_header 34 | 35 | 36 | 37 | 38 | #endif // _BITS_OPT_RANDOM_H 39 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/bits/stdtr1c++.h: -------------------------------------------------------------------------------- 1 | // C++ includes used for precompiling TR1 -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file stdtr1c++.h 26 | * This is an implementation file for a precompiled header. 27 | */ 28 | 29 | #include 30 | 31 | #include 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | #include 50 | #include 51 | #include 52 | #include 53 | #include 54 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/riscv64-unknown-elf/ext/opt_random.h: -------------------------------------------------------------------------------- 1 | // Optimizations for random number extensions, generic version -*- C++ -*- 2 | 3 | // Copyright (C) 2012-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file ext/opt_random.h 26 | * This is an internal header file, included by other library headers. 27 | * Do not attempt to use it directly. @headername{ext/random} 28 | */ 29 | 30 | #ifndef _EXT_OPT_RANDOM_H 31 | #define _EXT_OPT_RANDOM_H 1 32 | 33 | #pragma GCC system_header 34 | 35 | 36 | 37 | 38 | #endif // _EXT_OPT_RANDOM_H 39 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tgmath.h: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- compatibility header. 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tgmath.h 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #include 30 | 31 | #if __cplusplus >= 201103L 32 | # include 33 | #else 34 | # if _GLIBCXX_HAVE_TGMATH_H 35 | # include_next 36 | # endif 37 | #endif 38 | 39 | #ifndef _GLIBCXX_TGMATH_H 40 | #define _GLIBCXX_TGMATH_H 1 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/ccomplex: -------------------------------------------------------------------------------- 1 | // TR1 ccomplex -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/ccomplex 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CCOMPLEX 30 | #define _GLIBCXX_TR1_CCOMPLEX 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_CCOMPLEX 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cctype: -------------------------------------------------------------------------------- 1 | // TR1 cctype -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cctype 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CCTYPE 30 | #define _GLIBCXX_TR1_CCTYPE 1 31 | 32 | #include 33 | #include 34 | 35 | #ifdef _GLIBCXX_USE_C99_CTYPE_TR1 36 | 37 | #undef isblank 38 | 39 | namespace std _GLIBCXX_VISIBILITY(default) 40 | { 41 | namespace tr1 42 | { 43 | using ::isblank; 44 | } 45 | } 46 | 47 | #endif 48 | 49 | #endif // _GLIBCXX_TR1_CCTYPE 50 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cfloat: -------------------------------------------------------------------------------- 1 | // TR1 cfloat -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cfloat 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CFLOAT 30 | #define _GLIBCXX_TR1_CFLOAT 1 31 | 32 | #include 33 | 34 | #ifndef DECIMAL_DIG 35 | #define DECIMAL_DIG __DECIMAL_DIG__ 36 | #endif 37 | 38 | #ifndef FLT_EVAL_METHOD 39 | #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ 40 | #endif 41 | 42 | #endif //_GLIBCXX_TR1_CFLOAT 43 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/climits: -------------------------------------------------------------------------------- 1 | // TR1 climits -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/climits 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CLIMITS 30 | #define _GLIBCXX_TR1_CLIMITS 1 31 | 32 | #include 33 | 34 | #ifndef LLONG_MIN 35 | #define LLONG_MIN (-__LONG_LONG_MAX__ - 1) 36 | #endif 37 | 38 | #ifndef LLONG_MAX 39 | #define LLONG_MAX __LONG_LONG_MAX__ 40 | #endif 41 | 42 | #ifndef ULLONG_MAX 43 | #define ULLONG_MAX (__LONG_LONG_MAX__ * 2ULL + 1) 44 | #endif 45 | 46 | #endif // _GLIBCXX_TR1_CLIMITS 47 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/complex.h: -------------------------------------------------------------------------------- 1 | // TR1 complex.h -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/complex.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_COMPLEX_H 30 | #define _GLIBCXX_TR1_COMPLEX_H 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_COMPLEX_H 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cstdarg: -------------------------------------------------------------------------------- 1 | // TR1 cstdarg -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cstdarg 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CSTDARG 30 | #define _GLIBCXX_TR1_CSTDARG 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_CSTDARG 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cstdbool: -------------------------------------------------------------------------------- 1 | // TR1 cstdbool -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cstdbool 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CSTDBOOL 30 | #define _GLIBCXX_TR1_CSTDBOOL 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | 36 | #if _GLIBCXX_HAVE_STDBOOL_H 37 | #include 38 | #endif 39 | 40 | #endif // _GLIBCXX_TR1_CSTDBOOL 41 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cstdio: -------------------------------------------------------------------------------- 1 | // TR1 cstdio -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cstdio 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CSTDIO 30 | #define _GLIBCXX_TR1_CSTDIO 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | 36 | #if _GLIBCXX_USE_C99_STDIO 37 | 38 | namespace std _GLIBCXX_VISIBILITY(default) 39 | { 40 | namespace tr1 41 | { 42 | using std::snprintf; 43 | using std::vsnprintf; 44 | 45 | using std::vfscanf; 46 | using std::vscanf; 47 | using std::vsscanf; 48 | } 49 | } 50 | 51 | #endif 52 | 53 | #endif // _GLIBCXX_TR1_CSTDIO 54 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/ctgmath: -------------------------------------------------------------------------------- 1 | // TR1 ctgmath -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/ctgmath 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CTGMATH 30 | #define _GLIBCXX_TR1_CTGMATH 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_CTGMATH 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/ctime: -------------------------------------------------------------------------------- 1 | // TR1 ctime -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/ctime 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CTIME 30 | #define _GLIBCXX_TR1_CTIME 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_CTIME 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/ctype.h: -------------------------------------------------------------------------------- 1 | // TR1 ctype.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/ctype.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_CTYPE_H 30 | #define _TR1_CTYPE_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cwchar: -------------------------------------------------------------------------------- 1 | // TR1 cwchar -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cwchar 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CWCHAR 30 | #define _GLIBCXX_TR1_CWCHAR 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | 36 | #ifdef _GLIBCXX_USE_WCHAR_T 37 | 38 | namespace std _GLIBCXX_VISIBILITY(default) 39 | { 40 | namespace tr1 41 | { 42 | #if _GLIBCXX_HAVE_WCSTOF 43 | using std::wcstof; 44 | #endif 45 | #if _GLIBCXX_HAVE_VFWSCANF 46 | using std::vfwscanf; 47 | #endif 48 | #if _GLIBCXX_HAVE_VSWSCANF 49 | using std::vswscanf; 50 | #endif 51 | #if _GLIBCXX_HAVE_VWSCANF 52 | using std::vwscanf; 53 | #endif 54 | 55 | #if _GLIBCXX_USE_C99_WCHAR 56 | using std::wcstold; 57 | using std::wcstoll; 58 | using std::wcstoull; 59 | #endif 60 | } 61 | } 62 | 63 | #endif // _GLIBCXX_USE_WCHAR_T 64 | 65 | #endif // _GLIBCXX_TR1_CWCHAR 66 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/cwctype: -------------------------------------------------------------------------------- 1 | // TR1 cwctype -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/cwctype 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_CWCTYPE 30 | #define _GLIBCXX_TR1_CWCTYPE 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | 36 | #ifdef _GLIBCXX_USE_WCHAR_T 37 | 38 | namespace std _GLIBCXX_VISIBILITY(default) 39 | { 40 | namespace tr1 41 | { 42 | #if _GLIBCXX_HAVE_ISWBLANK 43 | using std::iswblank; 44 | #endif 45 | } 46 | } 47 | 48 | #endif // _GLIBCXX_USE_WCHAR_T 49 | 50 | #endif // _GLIBCXX_TR1_CWCTYPE 51 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/fenv.h: -------------------------------------------------------------------------------- 1 | // TR1 fenv.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/fenv.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_FENV_H 30 | #define _TR1_FENV_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/float.h: -------------------------------------------------------------------------------- 1 | // TR1 float.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/float.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_FLOAT_H 30 | #define _TR1_FLOAT_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/inttypes.h: -------------------------------------------------------------------------------- 1 | // TR1 inttypes.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/inttypes.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_INTTYPES_H 30 | #define _GLIBCXX_TR1_INTTYPES_H 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_INTTYPES_H 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/limits.h: -------------------------------------------------------------------------------- 1 | // TR1 limits.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/limits.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_LIMITS_H 30 | #define _TR1_LIMITS_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/memory: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** 26 | * @file tr1/memory 27 | * This is a TR1 C++ Library header. 28 | */ 29 | 30 | #ifndef _GLIBCXX_TR1_MEMORY 31 | #define _GLIBCXX_TR1_MEMORY 1 32 | 33 | #pragma GCC system_header 34 | 35 | #if defined(_GLIBCXX_INCLUDE_AS_CXX11) 36 | # error TR1 header cannot be included from C++11 header 37 | #endif 38 | 39 | #include 40 | #include // std::exception 41 | #include // std::type_info in get_deleter 42 | #include // std::swap 43 | #include // std::basic_ostream 44 | #include 45 | #include 46 | #include 47 | #include // std::less 48 | #include 49 | #include 50 | #include 51 | 52 | #endif // _GLIBCXX_TR1_MEMORY 53 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/random: -------------------------------------------------------------------------------- 1 | // random number generation -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** 26 | * @file tr1/random 27 | * This is a TR1 C++ Library header. 28 | */ 29 | 30 | #ifndef _GLIBCXX_TR1_RANDOM 31 | #define _GLIBCXX_TR1_RANDOM 1 32 | 33 | #pragma GCC system_header 34 | 35 | #include 36 | #include 37 | #include 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include 45 | #include 46 | #include 47 | #include 48 | #include 49 | 50 | #endif // _GLIBCXX_TR1_RANDOM 51 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/stdarg.h: -------------------------------------------------------------------------------- 1 | // TR1 stdarg.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/stdarg.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_STDARG_H 30 | #define _TR1_STDARG_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/stdbool.h: -------------------------------------------------------------------------------- 1 | // TR1 stdbool.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/stdbool.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_STDBOOL_H 30 | #define _TR1_STDBOOL_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/stdint.h: -------------------------------------------------------------------------------- 1 | // TR1 stdint.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/stdint.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_STDINT_H 30 | #define _TR1_STDINT_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/stdio.h: -------------------------------------------------------------------------------- 1 | // TR1 stdio.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/stdio.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _TR1_STDIO_H 30 | #define _TR1_STDIO_H 1 31 | 32 | #include 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/stdlib.h: -------------------------------------------------------------------------------- 1 | // TR1 stdlib.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/stdlib.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_STDLIB_H 30 | #define _GLIBCXX_TR1_STDLIB_H 1 31 | 32 | #include 33 | 34 | #if _GLIBCXX_HOSTED 35 | 36 | #if _GLIBCXX_USE_C99_STDLIB 37 | 38 | using std::tr1::atoll; 39 | using std::tr1::strtoll; 40 | using std::tr1::strtoull; 41 | 42 | using std::tr1::abs; 43 | #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC 44 | using std::tr1::div; 45 | #endif 46 | 47 | #endif 48 | 49 | #endif 50 | 51 | #endif // _GLIBCXX_TR1_STDLIB_H 52 | 53 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/tgmath.h: -------------------------------------------------------------------------------- 1 | // TR1 tgmath.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/tgmath.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_TGMATH_H 30 | #define _GLIBCXX_TR1_TGMATH_H 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_TGMATH_H 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/unordered_map: -------------------------------------------------------------------------------- 1 | // TR1 unordered_map -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/unordered_map 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_UNORDERED_MAP 30 | #define _GLIBCXX_TR1_UNORDERED_MAP 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | #include 36 | #include 37 | #include // equal_to, _Identity, _Select1st 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | 44 | #endif // _GLIBCXX_TR1_UNORDERED_MAP 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/unordered_set: -------------------------------------------------------------------------------- 1 | // TR1 unordered_set -*- C++ -*- 2 | 3 | // Copyright (C) 2005-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/unordered_set 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_UNORDERED_SET 30 | #define _GLIBCXX_TR1_UNORDERED_SET 1 31 | 32 | #pragma GCC system_header 33 | 34 | #include 35 | #include 36 | #include 37 | #include // equal_to, _Identity, _Select1st 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | 44 | #endif // _GLIBCXX_TR1_UNORDERED_SET 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/wchar.h: -------------------------------------------------------------------------------- 1 | // TR1 wchar.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/wchar.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_WCHAR_H 30 | #define _GLIBCXX_TR1_WCHAR_H 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_WCHAR_H 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/tr1/wctype.h: -------------------------------------------------------------------------------- 1 | // TR1 wctype.h -*- C++ -*- 2 | 3 | // Copyright (C) 2006-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file tr1/wctype.h 26 | * This is a TR1 C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_TR1_WCTYPE_H 30 | #define _GLIBCXX_TR1_WCTYPE_H 1 31 | 32 | #include 33 | 34 | #endif // _GLIBCXX_TR1_WCTYPE_H 35 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/c++/8.2.0/unordered_set: -------------------------------------------------------------------------------- 1 | // -*- C++ -*- 2 | 3 | // Copyright (C) 2007-2018 Free Software Foundation, Inc. 4 | // 5 | // This file is part of the GNU ISO C++ Library. This library is free 6 | // software; you can redistribute it and/or modify it under the 7 | // terms of the GNU General Public License as published by the 8 | // Free Software Foundation; either version 3, or (at your option) 9 | // any later version. 10 | 11 | // This library is distributed in the hope that it will be useful, 12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | // GNU General Public License for more details. 15 | 16 | // Under Section 7 of GPL version 3, you are granted additional 17 | // permissions described in the GCC Runtime Library Exception, version 18 | // 3.1, as published by the Free Software Foundation. 19 | 20 | // You should have received a copy of the GNU General Public License and 21 | // a copy of the GCC Runtime Library Exception along with this program; 22 | // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 23 | // . 24 | 25 | /** @file include/unordered_set 26 | * This is a Standard C++ Library header. 27 | */ 28 | 29 | #ifndef _GLIBCXX_UNORDERED_SET 30 | #define _GLIBCXX_UNORDERED_SET 1 31 | 32 | #pragma GCC system_header 33 | 34 | #if __cplusplus < 201103L 35 | # include 36 | #else 37 | 38 | #include 39 | #include 40 | #include 41 | #include 42 | #include 43 | #include 44 | #include // equal_to, _Identity, _Select1st 45 | #include 46 | #include 47 | #include 48 | #include 49 | 50 | #ifdef _GLIBCXX_DEBUG 51 | # include 52 | #endif 53 | 54 | #ifdef _GLIBCXX_PROFILE 55 | # include 56 | #endif 57 | #endif // C++11 58 | 59 | #endif // _GLIBCXX_UNORDERED_SET 60 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/cpio.h: -------------------------------------------------------------------------------- 1 | /* POSIX.1 symbolic constants for c_mode field of cpio archive format */ 2 | 3 | #ifndef _CPIO_H 4 | #define _CPIO_H 5 | 6 | #define C_IRUSR 0000400 /* Read by owner */ 7 | #define C_IWUSR 0000200 /* Write by owner */ 8 | #define C_IXUSR 0000100 /* Execute by owner */ 9 | #define C_IRGRP 0000040 /* Read by group */ 10 | #define C_IWGRP 0000020 /* Write by group */ 11 | #define C_IXGRP 0000010 /* Execute by group */ 12 | #define C_IROTH 0000004 /* Read by others */ 13 | #define C_IWOTH 0000002 /* Write by others */ 14 | #define C_IXOTH 0000001 /* Execute by others */ 15 | #define C_ISUID 0004000 /* Set user ID */ 16 | #define C_ISGID 0002000 /* Set group ID */ 17 | #define C_ISVTX 0001000 /* On directories, restricted deletion flag */ 18 | 19 | #define C_ISDIR 0040000 /* Directory */ 20 | #define C_ISFIFO 0010000 /* FIFO */ 21 | #define C_ISREG 0100000 /* Regular file */ 22 | #define C_ISBLK 0060000 /* Block special */ 23 | #define C_ISCHR 0020000 /* Character special */ 24 | #define C_ISCTG 0110000 /* Reserved */ 25 | #define C_ISLNK 0120000 /* Symbolic link */ 26 | #define C_ISSOCK 0140000 /* Socket */ 27 | 28 | #define MAGIC "070707" 29 | 30 | #endif /* _CPIO_H */ 31 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/envlock.h: -------------------------------------------------------------------------------- 1 | /* envlock.h -- header file for env routines. */ 2 | 3 | #ifndef _INCLUDE_ENVLOCK_H_ 4 | #define _INCLUDE_ENVLOCK_H_ 5 | 6 | #include <_ansi.h> 7 | #include 8 | 9 | #define ENV_LOCK __env_lock(reent_ptr) 10 | #define ENV_UNLOCK __env_unlock(reent_ptr) 11 | 12 | void __env_lock (struct _reent *reent); 13 | void __env_unlock (struct _reent *reent); 14 | 15 | #endif /* _INCLUDE_ENVLOCK_H_ */ 16 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/envz.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. 2 | * 3 | * Permission to use, copy, modify, and distribute this software 4 | * is freely granted, provided that this notice is preserved. 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | /* The newlib implementation of these functions assumes that sizeof(char) == 1. */ 11 | char * envz_entry (const char *envz, size_t envz_len, const char *name); 12 | char * envz_get (const char *envz, size_t envz_len, const char *name); 13 | error_t envz_add (char **envz, size_t *envz_len, const char *name, const char *value); 14 | error_t envz_merge (char **envz, size_t *envz_len, const char *envz2, size_t envz2_len, int override); 15 | void envz_remove(char **envz, size_t *envz_len, const char *name); 16 | void envz_strip (char **envz, size_t *envz_len); 17 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef __ERRNO_H__ 2 | #define __ERRNO_H__ 3 | 4 | #ifndef __error_t_defined 5 | typedef int error_t; 6 | #define __error_t_defined 1 7 | #endif 8 | 9 | #include 10 | 11 | #endif /* !__ERRNO_H__ */ 12 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/fastmath.h: -------------------------------------------------------------------------------- 1 | #ifndef _FASTMATH_H_ 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | #define _FASTMATH_H_ 6 | 7 | #include 8 | #include 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | #endif /* _FASTMATH_H_ */ 14 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/fenv.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2017 SiFive Inc. All rights reserved. 2 | 3 | This copyrighted material is made available to anyone wishing to use, 4 | modify, copy, or redistribute it subject to the terms and conditions 5 | of the FreeBSD License. This program is distributed in the hope that 6 | it will be useful, but WITHOUT ANY WARRANTY expressed or implied, 7 | including the implied warranties of MERCHANTABILITY or FITNESS FOR 8 | A PARTICULAR PURPOSE. A copy of this license is available at 9 | http://www.opensource.org/licenses. 10 | */ 11 | 12 | #ifndef _FENV_H 13 | #define _FENV_H 14 | 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | /* Exception */ 22 | int feclearexcept(int excepts); 23 | int fegetexceptflag(fexcept_t *flagp, int excepts); 24 | int feraiseexcept(int excepts); 25 | int fesetexceptflag(const fexcept_t *flagp, int excepts); 26 | int fetestexcept(int excepts); 27 | 28 | /* Rounding mode */ 29 | int fegetround(void); 30 | int fesetround(int rounding_mode); 31 | 32 | /* Float environment */ 33 | int fegetenv(fenv_t *envp); 34 | int feholdexcept(fenv_t *envp); 35 | int fesetenv(const fenv_t *envp); 36 | int feupdateenv(const fenv_t *envp); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/libgen.h: -------------------------------------------------------------------------------- 1 | /* 2 | * libgen.h - defined by XPG4 3 | */ 4 | 5 | #ifndef _LIBGEN_H_ 6 | #define _LIBGEN_H_ 7 | 8 | #include "_ansi.h" 9 | #include 10 | #include 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | /* There are two common basename variants. If you do NOT #include 17 | and you do 18 | 19 | #define _GNU_SOURCE 20 | #include 21 | 22 | you get the GNU version. Otherwise you get the POSIX versionfor which you 23 | should #include i for the function prototype. POSIX requires that 24 | #undef basename will still let you invoke the underlying function. However, 25 | this also implies that the POSIX version is used in this case. That's made 26 | sure here. */ 27 | #undef basename 28 | #define basename __xpg_basename 29 | char *basename (char *) __asm__(__ASMNAME("basename")); 30 | char *dirname (char *); 31 | 32 | #ifdef __cplusplus 33 | } 34 | #endif 35 | 36 | #endif /* _LIBGEN_H_ */ 37 | 38 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/_arc4random.h: -------------------------------------------------------------------------------- 1 | /* Use default implementation, see arc4random.h */ 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/_endian.h: -------------------------------------------------------------------------------- 1 | #ifndef __MACHINE_ENDIAN_H__ 2 | #error "must be included via " 3 | #endif /* !__MACHINE_ENDIAN_H__ */ 4 | 5 | #include 6 | 7 | #ifdef __PPC__ 8 | /* Get rid of GCC builtin defines on PowerPC */ 9 | #ifdef _BIG_ENDIAN 10 | #undef _BIG_ENDIAN 11 | #endif 12 | #ifdef _LITTLE_ENDIAN 13 | #undef _LITTLE_ENDIAN 14 | #endif 15 | #endif /* __PPC__ */ 16 | 17 | #ifndef _LITTLE_ENDIAN 18 | #define _LITTLE_ENDIAN 1234 19 | #endif 20 | 21 | #ifndef _BIG_ENDIAN 22 | #define _BIG_ENDIAN 4321 23 | #endif 24 | 25 | #ifndef _PDP_ENDIAN 26 | #define _PDP_ENDIAN 3412 27 | #endif 28 | 29 | #ifndef _BYTE_ORDER 30 | #if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN) 31 | #define _BYTE_ORDER _LITTLE_ENDIAN 32 | #else 33 | #define _BYTE_ORDER _BIG_ENDIAN 34 | #endif 35 | #endif 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/_time.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIME_H_ 2 | #error "must be included via " 3 | #endif /* !_SYS_TIME_H_ */ 4 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * $Id$ 3 | */ 4 | 5 | #ifndef _MACHINE__TYPES_H 6 | #define _MACHINE__TYPES_H 7 | #include 8 | #endif 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/ansi.h: -------------------------------------------------------------------------------- 1 | /* dummy header file to support BSD compiler */ 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/endian.h: -------------------------------------------------------------------------------- 1 | #ifndef __MACHINE_ENDIAN_H__ 2 | #define __MACHINE_ENDIAN_H__ 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #if _BYTE_ORDER == _LITTLE_ENDIAN 9 | #define _QUAD_HIGHWORD 1 10 | #define _QUAD_LOWWORD 0 11 | #else 12 | #define _QUAD_HIGHWORD 0 13 | #define _QUAD_LOWWORD 1 14 | #endif 15 | 16 | #if __BSD_VISIBLE 17 | #define LITTLE_ENDIAN _LITTLE_ENDIAN 18 | #define BIG_ENDIAN _BIG_ENDIAN 19 | #define PDP_ENDIAN _PDP_ENDIAN 20 | #define BYTE_ORDER _BYTE_ORDER 21 | #endif 22 | 23 | #ifdef __GNUC__ 24 | #define __bswap16(_x) __builtin_bswap16(_x) 25 | #define __bswap32(_x) __builtin_bswap32(_x) 26 | #define __bswap64(_x) __builtin_bswap64(_x) 27 | #else /* __GNUC__ */ 28 | static __inline __uint16_t 29 | __bswap16(__uint16_t _x) 30 | { 31 | 32 | return ((__uint16_t)((_x >> 8) | ((_x << 8) & 0xff00))); 33 | } 34 | 35 | static __inline __uint32_t 36 | __bswap32(__uint32_t _x) 37 | { 38 | 39 | return ((__uint32_t)((_x >> 24) | ((_x >> 8) & 0xff00) | 40 | ((_x << 8) & 0xff0000) | ((_x << 24) & 0xff000000))); 41 | } 42 | 43 | static __inline __uint64_t 44 | __bswap64(__uint64_t _x) 45 | { 46 | 47 | return ((__uint64_t)((_x >> 56) | ((_x >> 40) & 0xff00) | 48 | ((_x >> 24) & 0xff0000) | ((_x >> 8) & 0xff000000) | 49 | ((_x << 8) & ((__uint64_t)0xff << 32)) | 50 | ((_x << 24) & ((__uint64_t)0xff << 40)) | 51 | ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56)))); 52 | } 53 | #endif /* !__GNUC__ */ 54 | 55 | #ifndef __machine_host_to_from_network_defined 56 | #if _BYTE_ORDER == _LITTLE_ENDIAN 57 | #define __htonl(_x) __bswap32(_x) 58 | #define __htons(_x) __bswap16(_x) 59 | #define __ntohl(_x) __bswap32(_x) 60 | #define __ntohs(_x) __bswap16(_x) 61 | #else 62 | #define __htonl(_x) ((__uint32_t)(_x)) 63 | #define __htons(_x) ((__uint16_t)(_x)) 64 | #define __ntohl(_x) ((__uint32_t)(_x)) 65 | #define __ntohs(_x) ((__uint16_t)(_x)) 66 | #endif 67 | #endif /* __machine_host_to_from_network_defined */ 68 | 69 | #endif /* __MACHINE_ENDIAN_H__ */ 70 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/malloc.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHMALLOC_H_ 2 | #define _MACHMALLOC_H_ 3 | 4 | /* place holder so platforms may add malloc.h extensions */ 5 | 6 | #endif /* _MACHMALLOC_H_ */ 7 | 8 | 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/param.h: -------------------------------------------------------------------------------- 1 | /* Place holder for machine-specific param.h. */ 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/setjmp-dj.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 1991 DJ Delorie 3 | * All rights reserved. 4 | * 5 | * Redistribution, modification, and use in source and binary forms is permitted 6 | * provided that the above copyright notice and following paragraph are 7 | * duplicated in all such forms. 8 | * 9 | * This file is distributed WITHOUT ANY WARRANTY; without even the implied 10 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | */ 12 | 13 | /* Modified to use SETJMP_DJ_H rather than SETJMP_H to avoid 14 | conflicting with setjmp.h. Ian Taylor, Cygnus support, April, 15 | 1993. */ 16 | 17 | #ifndef _SETJMP_DJ_H_ 18 | #define _SETJMP_DJ_H_ 19 | 20 | #ifdef __cplusplus 21 | extern "C" { 22 | #endif 23 | 24 | typedef struct { 25 | unsigned long eax; 26 | unsigned long ebx; 27 | unsigned long ecx; 28 | unsigned long edx; 29 | unsigned long esi; 30 | unsigned long edi; 31 | unsigned long ebp; 32 | unsigned long esp; 33 | unsigned long eip; 34 | } jmp_buf[1]; 35 | 36 | extern int setjmp(jmp_buf); 37 | extern void longjmp(jmp_buf, int); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/stdlib.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHSTDLIB_H_ 2 | #define _MACHSTDLIB_H_ 3 | 4 | /* place holder so platforms may add stdlib.h extensions */ 5 | 6 | #endif /* _MACHSTDLIB_H_ */ 7 | 8 | 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/syscall.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2017 SiFive Inc. All rights reserved. 2 | 3 | This copyrighted material is made available to anyone wishing to use, 4 | modify, copy, or redistribute it subject to the terms and conditions 5 | of the FreeBSD License. This program is distributed in the hope that 6 | it will be useful, but WITHOUT ANY WARRANTY expressed or implied, 7 | including the implied warranties of MERCHANTABILITY or FITNESS FOR 8 | A PARTICULAR PURPOSE. A copy of this license is available at 9 | http://www.opensource.org/licenses. 10 | */ 11 | 12 | #ifndef _MACHINE_SYSCALL_H 13 | #define _MACHINE_SYSCALL_H 14 | 15 | #define SYS_getcwd 17 16 | #define SYS_dup 23 17 | #define SYS_fcntl 25 18 | #define SYS_faccessat 48 19 | #define SYS_chdir 49 20 | #define SYS_openat 56 21 | #define SYS_close 57 22 | #define SYS_getdents 61 23 | #define SYS_lseek 62 24 | #define SYS_read 63 25 | #define SYS_write 64 26 | #define SYS_writev 66 27 | #define SYS_pread 67 28 | #define SYS_pwrite 68 29 | #define SYS_fstatat 79 30 | #define SYS_fstat 80 31 | #define SYS_exit 93 32 | #define SYS_exit_group 94 33 | #define SYS_kill 129 34 | #define SYS_rt_sigaction 134 35 | #define SYS_times 153 36 | #define SYS_uname 160 37 | #define SYS_gettimeofday 169 38 | #define SYS_getpid 172 39 | #define SYS_getuid 174 40 | #define SYS_geteuid 175 41 | #define SYS_getgid 176 42 | #define SYS_getegid 177 43 | #define SYS_brk 214 44 | #define SYS_munmap 215 45 | #define SYS_mremap 216 46 | #define SYS_mmap 222 47 | #define SYS_open 1024 48 | #define SYS_link 1025 49 | #define SYS_unlink 1026 50 | #define SYS_mkdir 1030 51 | #define SYS_access 1033 52 | #define SYS_stat 1038 53 | #define SYS_lstat 1039 54 | #define SYS_time 1062 55 | #define SYS_getmainvars 2011 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/termios.h: -------------------------------------------------------------------------------- 1 | #define __MAX_BAUD B4000000 2 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _MACHTIME_H_ 2 | #define _MACHTIME_H_ 3 | 4 | #if defined(__rtems__) || defined(__VISIUM__) || defined(__riscv) 5 | #define _CLOCKS_PER_SEC_ 1000000 6 | #elif defined(__aarch64__) || defined(__arm__) || defined(__thumb__) 7 | #define _CLOCKS_PER_SEC_ 100 8 | #endif 9 | 10 | #ifdef __SPU__ 11 | #include 12 | int nanosleep (const struct timespec *, struct timespec *); 13 | #endif 14 | 15 | #endif /* _MACHTIME_H_ */ 16 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/machine/types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Newlib targets may provide an own version of this file in their machine 3 | * directory to add custom user types for . 4 | */ 5 | #ifndef _SYS_TYPES_H 6 | #error "must be included via " 7 | #endif /* !_SYS_TYPES_H */ 8 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef _MEMORY_H 2 | #define _MEMORY_H 3 | #include 4 | #endif /* !_MEMORY_H */ 5 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/paths.h: -------------------------------------------------------------------------------- 1 | #ifndef _PATHS_H_ 2 | #define _PATHS_H_ 3 | 4 | #define _PATH_DEV "/dev/" 5 | #define _PATH_DEVNULL "/dev/null" 6 | #define _PATH_DEVZERO "/dev/zero" 7 | #define _PATH_BSHELL "/bin/sh" 8 | 9 | #endif /* _PATHS_H_ */ 10 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/regdef.h: -------------------------------------------------------------------------------- 1 | /* regdef.h -- define register names. */ 2 | 3 | /* This is a standard include file for MIPS targets. Other target 4 | probably don't define it, and attempts to include this file will 5 | fail. */ 6 | 7 | #include 8 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/search.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ */ 2 | /* $FreeBSD: src/include/search.h,v 1.4 2002/03/23 17:24:53 imp Exp $ */ 3 | 4 | /* 5 | * Written by J.T. Conklin 6 | * Public domain. 7 | */ 8 | 9 | #ifndef _SEARCH_H_ 10 | #define _SEARCH_H_ 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | typedef struct entry { 17 | char *key; 18 | void *data; 19 | } ENTRY; 20 | 21 | typedef enum { 22 | FIND, ENTER 23 | } ACTION; 24 | 25 | typedef enum { 26 | preorder, 27 | postorder, 28 | endorder, 29 | leaf 30 | } VISIT; 31 | 32 | #ifdef _SEARCH_PRIVATE 33 | typedef struct node { 34 | char *key; 35 | struct node *llink, *rlink; 36 | } node_t; 37 | #endif 38 | 39 | struct hsearch_data 40 | { 41 | struct internal_head *htable; 42 | size_t htablesize; 43 | }; 44 | 45 | #ifndef __compar_fn_t_defined 46 | #define __compar_fn_t_defined 47 | typedef int (*__compar_fn_t) (const void *, const void *); 48 | #endif 49 | 50 | __BEGIN_DECLS 51 | int hcreate(size_t); 52 | void hdestroy(void); 53 | ENTRY *hsearch(ENTRY, ACTION); 54 | int hcreate_r(size_t, struct hsearch_data *); 55 | void hdestroy_r(struct hsearch_data *); 56 | int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *); 57 | void *tdelete(const void *__restrict, void **__restrict, __compar_fn_t); 58 | void tdestroy (void *, void (*)(void *)); 59 | void *tfind(const void *, void **, __compar_fn_t); 60 | void *tsearch(const void *, void **, __compar_fn_t); 61 | void twalk(const void *, void (*)(const void *, VISIT, int)); 62 | __END_DECLS 63 | 64 | #endif /* !_SEARCH_H_ */ 65 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/setjmp.h: -------------------------------------------------------------------------------- 1 | /* 2 | setjmp.h 3 | stubs for future use. 4 | */ 5 | 6 | #ifndef _SETJMP_H_ 7 | #define _SETJMP_H_ 8 | 9 | #include "_ansi.h" 10 | #include 11 | 12 | _BEGIN_STD_C 13 | 14 | #ifdef __GNUC__ 15 | void longjmp (jmp_buf __jmpb, int __retval) 16 | __attribute__ ((__noreturn__)); 17 | #else 18 | void longjmp (jmp_buf __jmpb, int __retval); 19 | #endif 20 | int setjmp (jmp_buf __jmpb); 21 | 22 | _END_STD_C 23 | 24 | #endif /* _SETJMP_H_ */ 25 | 26 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/signal.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIGNAL_H_ 2 | #define _SIGNAL_H_ 3 | 4 | #include "_ansi.h" 5 | #include 6 | #include 7 | 8 | _BEGIN_STD_C 9 | 10 | typedef int sig_atomic_t; /* Atomic entity type (ANSI) */ 11 | #if __BSD_VISIBLE 12 | typedef _sig_func_ptr sig_t; /* BSD naming */ 13 | #endif 14 | #if __GNU_VISIBLE 15 | typedef _sig_func_ptr sighandler_t; /* glibc naming */ 16 | #endif 17 | 18 | #define SIG_DFL ((_sig_func_ptr)0) /* Default action */ 19 | #define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */ 20 | #define SIG_ERR ((_sig_func_ptr)-1) /* Error return */ 21 | 22 | struct _reent; 23 | 24 | _sig_func_ptr _signal_r (struct _reent *, int, _sig_func_ptr); 25 | int _raise_r (struct _reent *, int); 26 | 27 | #ifndef _REENT_ONLY 28 | _sig_func_ptr signal (int, _sig_func_ptr); 29 | int raise (int); 30 | void psignal (int, const char *); 31 | #endif 32 | 33 | _END_STD_C 34 | 35 | #endif /* _SIGNAL_H_ */ 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/ssp/stdlib.h: -------------------------------------------------------------------------------- 1 | #ifndef _SSP_STDLIB_H_ 2 | #define _SSP_STDLIB_H_ 3 | 4 | #include 5 | 6 | #if __SSP_FORTIFY_LEVEL > 0 7 | __BEGIN_DECLS 8 | 9 | __ssp_decl(size_t, mbstowcs, (wchar_t *__buf, const char *__src, size_t __n)) 10 | { 11 | if (__buf != NULL) 12 | __ssp_check(__buf, __n * sizeof(wchar_t), __ssp_bos); 13 | return __ssp_real_mbstowcs (__buf, __src, __n); 14 | } 15 | 16 | __ssp_redirect_raw(size_t, wcstombs, \ 17 | (char *__buf, const wchar_t *__src, size_t __len), \ 18 | (__buf, __src, __len), __buf != NULL, __ssp_bos); 19 | 20 | __ssp_decl(int, wctomb, (char *__buf, wchar_t __wc)) 21 | { 22 | if (__buf != NULL) 23 | __ssp_check(__buf, MB_CUR_MAX, __ssp_bos); 24 | return __ssp_real_wctomb (__buf, __wc); 25 | } 26 | 27 | __END_DECLS 28 | 29 | #endif /* __SSP_FORTIFY_LEVEL > 0 */ 30 | #endif /* _SSP_STDLIB_H_ */ 31 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/asm.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2017 SiFive Inc. All rights reserved. 2 | 3 | This copyrighted material is made available to anyone wishing to use, 4 | modify, copy, or redistribute it subject to the terms and conditions 5 | of the FreeBSD License. This program is distributed in the hope that 6 | it will be useful, but WITHOUT ANY WARRANTY expressed or implied, 7 | including the implied warranties of MERCHANTABILITY or FITNESS FOR 8 | A PARTICULAR PURPOSE. A copy of this license is available at 9 | http://www.opensource.org/licenses. 10 | */ 11 | 12 | #ifndef _SYS_ASM_H 13 | #define _SYS_ASM_H 14 | 15 | /* 16 | * Macros to handle different pointer/register sizes for 32/64-bit code 17 | */ 18 | #if __riscv_xlen == 64 19 | # define PTRLOG 3 20 | # define SZREG 8 21 | # define REG_S sd 22 | # define REG_L ld 23 | #elif __riscv_xlen == 32 24 | # define PTRLOG 2 25 | # define SZREG 4 26 | # define REG_S sw 27 | # define REG_L lw 28 | #else 29 | # error __riscv_xlen must equal 32 or 64 30 | #endif 31 | 32 | #ifndef __riscv_float_abi_soft 33 | /* For ABI uniformity, reserve 8 bytes for floats, even if double-precision 34 | floating-point is not supported in hardware. */ 35 | # define SZFREG 8 36 | # ifdef __riscv_float_abi_single 37 | # define FREG_L flw 38 | # define FREG_S fsw 39 | # elif defined(__riscv_float_abi_double) 40 | # define FREG_L fld 41 | # define FREG_S fsd 42 | # elif defined(__riscv_float_abi_quad) 43 | # define FREG_L flq 44 | # define FREG_S fsq 45 | # else 46 | # error unsupported FLEN 47 | # endif 48 | #endif 49 | 50 | #endif /* sys/asm.h */ 51 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/custom_file.h: -------------------------------------------------------------------------------- 1 | #error System-specific custom_file.h is missing. 2 | 3 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | /* BSD predecessor of POSIX.1 and struct dirent */ 2 | 3 | #ifndef _SYS_DIR_H_ 4 | #define _SYS_DIR_H_ 5 | 6 | #include 7 | 8 | #define direct dirent 9 | 10 | #endif /*_SYS_DIR_H_*/ 11 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/dirent.h: -------------------------------------------------------------------------------- 1 | /* includes , which is this file. On a 2 | system which supports , this file is overridden by 3 | dirent.h in the libc/sys/.../sys directory. On a system which does 4 | not support , we will get this file which uses #error to force 5 | an error. */ 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | #error " not supported" 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/fcntl.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_FCNTL_H_ 2 | #define _SYS_FCNTL_H_ 3 | #include 4 | #endif 5 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/file.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/lock.h: -------------------------------------------------------------------------------- 1 | #ifndef _RISCV_LOCK_H__ 2 | #define _RISCV_LOCK_H__ 3 | 4 | typedef long _lock_t; 5 | typedef _lock_t _LOCK_RECURSIVE_T; 6 | typedef _lock_t _LOCK_T; 7 | 8 | #include <_ansi.h> 9 | 10 | #define __LOCK_INIT(CLASS,NAME) CLASS _lock_t NAME = 0; 11 | #define __LOCK_INIT_RECURSIVE(CLASS,NAME) CLASS _lock_t NAME = 0; 12 | 13 | void _lock_init(_lock_t *lock); 14 | void _lock_init_recursive(_lock_t *lock); 15 | void _lock_close(_lock_t *lock); 16 | void _lock_close_recursive(_lock_t *lock); 17 | void _lock_acquire(_lock_t *lock); 18 | void _lock_acquire_recursive(_lock_t *lock); 19 | int _lock_try_acquire(_lock_t *lock); 20 | int _lock_try_acquire_recursive(_lock_t *lock); 21 | void _lock_release(_lock_t *lock); 22 | void _lock_release_recursive(_lock_t *lock); 23 | 24 | #define __lock_init(lock) _lock_init(&(lock)) 25 | #define __lock_init_recursive(lock) _lock_init_recursive(&(lock)) 26 | #define __lock_close(lock) _lock_close(&(lock)) 27 | #define __lock_close_recursive(lock) _lock_close_recursive(&(lock)) 28 | #define __lock_acquire(lock) _lock_acquire(&(lock)) 29 | #define __lock_acquire_recursive(lock) _lock_acquire_recursive(&(lock)) 30 | #define __lock_try_acquire(lock) _lock_try_acquire(&(lock)) 31 | #define __lock_try_acquire_recursive(lock) _lock_try_acquire_recursive(&(lock)) 32 | #define __lock_release(lock) _lock_release(&(lock)) 33 | #define __lock_release_recursive(lock) _lock_release_recursive(&(lock)) 34 | 35 | #endif /* _RISCV_LOCK_H__ */ 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/param.h: -------------------------------------------------------------------------------- 1 | /* This is a dummy file, not customized for any 2 | particular system. If there is a param.h in libc/sys/SYSDIR/sys, 3 | it will override this one. */ 4 | 5 | #ifndef _SYS_PARAM_H 6 | # define _SYS_PARAM_H 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #ifndef NBBY 14 | # define NBBY 8 /* number of bits in a byte */ 15 | #endif 16 | #ifndef HZ 17 | # define HZ (60) 18 | #endif 19 | #ifndef NOFILE 20 | # define NOFILE (60) 21 | #endif 22 | #ifndef PATHSIZE 23 | # define PATHSIZE (1024) 24 | #endif 25 | 26 | #define MAXPATHLEN PATH_MAX 27 | 28 | #define MAX(a,b) ((a) > (b) ? (a) : (b)) 29 | #define MIN(a,b) ((a) < (b) ? (a) : (b)) 30 | 31 | #ifndef howmany 32 | #define howmany(x, y) (((x)+((y)-1))/(y)) 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/resource.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_RESOURCE_H_ 2 | #define _SYS_RESOURCE_H_ 3 | 4 | #include 5 | 6 | #define RUSAGE_SELF 0 /* calling process */ 7 | #define RUSAGE_CHILDREN -1 /* terminated child processes */ 8 | 9 | struct rusage { 10 | struct timeval ru_utime; /* user time used */ 11 | struct timeval ru_stime; /* system time used */ 12 | }; 13 | 14 | int getrusage (int, struct rusage*); 15 | 16 | #endif 17 | 18 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/stdio.h: -------------------------------------------------------------------------------- 1 | #ifndef _NEWLIB_STDIO_H 2 | #define _NEWLIB_STDIO_H 3 | 4 | #include 5 | #include 6 | 7 | /* Internal locking macros, used to protect stdio functions. In the 8 | general case, expand to nothing. Use __SSTR flag in FILE _flags to 9 | detect if FILE is private to sprintf/sscanf class of functions; if 10 | set then do nothing as lock is not initialised. */ 11 | #if !defined(_flockfile) 12 | #ifndef __SINGLE_THREAD__ 13 | # define _flockfile(fp) (((fp)->_flags & __SSTR) ? 0 : __lock_acquire_recursive((fp)->_lock)) 14 | #else 15 | # define _flockfile(fp) ((void) 0) 16 | #endif 17 | #endif 18 | 19 | #if !defined(_funlockfile) 20 | #ifndef __SINGLE_THREAD__ 21 | # define _funlockfile(fp) (((fp)->_flags & __SSTR) ? 0 : __lock_release_recursive((fp)->_lock)) 22 | #else 23 | # define _funlockfile(fp) ((void) 0) 24 | #endif 25 | #endif 26 | 27 | #endif /* _NEWLIB_STDIO_H */ 28 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/string.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2017 SiFive Inc. All rights reserved. 2 | 3 | This copyrighted material is made available to anyone wishing to use, 4 | modify, copy, or redistribute it subject to the terms and conditions 5 | of the FreeBSD License. This program is distributed in the hope that 6 | it will be useful, but WITHOUT ANY WARRANTY expressed or implied, 7 | including the implied warranties of MERCHANTABILITY or FITNESS FOR 8 | A PARTICULAR PURPOSE. A copy of this license is available at 9 | http://www.opensource.org/licenses. 10 | */ 11 | 12 | #ifndef _SYS_STRING_H 13 | #define _SYS_STRING_H 14 | 15 | static __inline unsigned long __libc_detect_null(unsigned long w) 16 | { 17 | unsigned long mask = 0x7f7f7f7f; 18 | if (sizeof (long) == 8) 19 | mask = ((mask << 16) << 16) | mask; 20 | return ~(((w & mask) + mask) | w | mask); 21 | } 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/timeb.h: -------------------------------------------------------------------------------- 1 | /* timeb.h -- An implementation of the standard Unix file. 2 | Written by Ian Lance Taylor 3 | Public domain; no rights reserved. 4 | 5 | declares the structure used by the ftime function, as 6 | well as the ftime function itself. Newlib does not provide an 7 | implementation of ftime. */ 8 | 9 | #ifndef _SYS_TIMEB_H 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #define _SYS_TIMEB_H 16 | 17 | #include <_ansi.h> 18 | #include 19 | 20 | #if !defined(__time_t_defined) && !defined(_TIME_T_DECLARED) 21 | typedef _TIME_T_ time_t; 22 | #define __time_t_defined 23 | #define _TIME_T_DECLARED 24 | #endif 25 | 26 | struct timeb 27 | { 28 | time_t time; 29 | unsigned short millitm; 30 | short timezone; 31 | short dstflag; 32 | }; 33 | 34 | extern int ftime (struct timeb *); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif /* ! defined (_SYS_TIMEB_H) */ 41 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/times.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMES_H 2 | #ifdef __cplusplus 3 | extern "C" { 4 | #endif 5 | #define _SYS_TIMES_H 6 | 7 | #include <_ansi.h> 8 | #include 9 | 10 | #if !defined(__clock_t_defined) && !defined(_CLOCK_T_DECLARED) 11 | typedef _CLOCK_T_ clock_t; 12 | #define __clock_t_defined 13 | #define _CLOCK_T_DECLARED 14 | #endif 15 | 16 | /* Get Process Times, P1003.1b-1993, p. 92 */ 17 | struct tms { 18 | clock_t tms_utime; /* user time */ 19 | clock_t tms_stime; /* system time */ 20 | clock_t tms_cutime; /* user time, children */ 21 | clock_t tms_cstime; /* system time, children */ 22 | }; 23 | 24 | clock_t times (struct tms *); 25 | #ifdef _COMPILING_NEWLIB 26 | clock_t _times (struct tms *); 27 | #endif 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | #endif /* !_SYS_TIMES_H */ 33 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UTIME_H 2 | #define _SYS_UTIME_H 3 | 4 | /* This is a dummy file, not customized for any 5 | particular system. If there is a utime.h in libc/sys/SYSDIR/sys, 6 | it will override this one. */ 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | struct utimbuf 13 | { 14 | time_t actime; 15 | time_t modtime; 16 | }; 17 | 18 | #ifdef __cplusplus 19 | }; 20 | #endif 21 | 22 | #endif /* _SYS_UTIME_H */ 23 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/sys/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_WAIT_H 2 | #define _SYS_WAIT_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | #define WNOHANG 1 11 | #define WUNTRACED 2 12 | 13 | /* A status looks like: 14 | <1 byte info> <1 byte code> 15 | 16 | == 0, child has exited, info is the exit value 17 | == 1..7e, child has exited, info is the signal number. 18 | == 7f, child has stopped, info was the signal number. 19 | == 80, there was a core dump. 20 | */ 21 | 22 | #define WIFEXITED(w) (((w) & 0xff) == 0) 23 | #define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f)) 24 | #define WIFSTOPPED(w) (((w) & 0xff) == 0x7f) 25 | #define WEXITSTATUS(w) (((w) >> 8) & 0xff) 26 | #define WTERMSIG(w) ((w) & 0x7f) 27 | #define WSTOPSIG WEXITSTATUS 28 | 29 | pid_t wait (int *); 30 | pid_t waitpid (pid_t, int *, int); 31 | 32 | #ifdef _COMPILING_NEWLIB 33 | pid_t _wait (int *); 34 | #endif 35 | 36 | /* Provide prototypes for most of the _ names that are 37 | provided in newlib for some compilers. */ 38 | pid_t _wait (int *); 39 | 40 | #ifdef __cplusplus 41 | }; 42 | #endif 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/tar.h: -------------------------------------------------------------------------------- 1 | /* 2 | * tar.h 3 | */ 4 | 5 | #ifndef _TAR_H 6 | #define _TAR_H 7 | 8 | #include 9 | 10 | /* General definitions */ 11 | #define TMAGIC "ustar" /* ustar plus null byte. */ 12 | #define TMAGLEN 6 /* Length of the above. */ 13 | #define TVERSION "00" /* 00 without a null byte. */ 14 | #define TVERSLEN 2 /* Length of the above. */ 15 | 16 | /* Typeflag field definitions */ 17 | #define REGTYPE '0' /* Regular file. */ 18 | #define AREGTYPE '\0' /* Regular file. */ 19 | #define LNKTYPE '1' /* Link. */ 20 | #define SYMTYPE '2' /* Symbolic link. */ 21 | #define CHRTYPE '3' /* Character special. */ 22 | #define BLKTYPE '4' /* Block special. */ 23 | #define DIRTYPE '5' /* Directory. */ 24 | #define FIFOTYPE '6' /* FIFO special. */ 25 | #define CONTTYPE '7' /* Reserved. */ 26 | 27 | /* Mode field bit definitions (octal) */ 28 | #define TSUID 04000 /* Set UID on execution. */ 29 | #define TSGID 02000 /* Set GID on execution. */ 30 | #if __XSI_VISIBLE || __POSIX_VISIBLE < 200112 31 | #define TSVTX 01000 /* On directories, restricted deletion flag. */ 32 | #endif 33 | #define TUREAD 00400 /* Read by owner. */ 34 | #define TUWRITE 00200 /* Write by owner. */ 35 | #define TUEXEC 00100 /* Execute/search by owner. */ 36 | #define TGREAD 00040 /* Read by group. */ 37 | #define TGWRITE 00020 /* Write by group. */ 38 | #define TGEXEC 00010 /* Execute/search by group. */ 39 | #define TOREAD 00004 /* Read by other. */ 40 | #define TOWRITE 00002 /* Write by other. */ 41 | #define TOEXEC 00001 /* Execute/search by other. */ 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/termios.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | #ifdef __cplusplus 6 | } 7 | #endif 8 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _UNISTD_H_ 2 | #define _UNISTD_H_ 3 | 4 | # include 5 | 6 | #endif /* _UNISTD_H_ */ 7 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/utime.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | 5 | #include <_ansi.h> 6 | 7 | /* The utime function is defined in libc/sys//sys if it exists. */ 8 | #include 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/utmp.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | #include 5 | #ifdef __cplusplus 6 | } 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/wctype.h: -------------------------------------------------------------------------------- 1 | #ifndef _WCTYPE_H_ 2 | #define _WCTYPE_H_ 3 | 4 | #include <_ansi.h> 5 | #include 6 | 7 | #define __need_wint_t 8 | #include 9 | 10 | #if __POSIX_VISIBLE >= 200809 11 | #include 12 | #endif 13 | 14 | #ifndef WEOF 15 | # define WEOF ((wint_t)-1) 16 | #endif 17 | 18 | _BEGIN_STD_C 19 | 20 | #ifndef _WCTYPE_T 21 | #define _WCTYPE_T 22 | typedef int wctype_t; 23 | #endif 24 | 25 | #ifndef _WCTRANS_T 26 | #define _WCTRANS_T 27 | typedef int wctrans_t; 28 | #endif 29 | 30 | int iswalpha (wint_t); 31 | int iswalnum (wint_t); 32 | #if __ISO_C_VISIBLE >= 1999 33 | int iswblank (wint_t); 34 | #endif 35 | int iswcntrl (wint_t); 36 | int iswctype (wint_t, wctype_t); 37 | int iswdigit (wint_t); 38 | int iswgraph (wint_t); 39 | int iswlower (wint_t); 40 | int iswprint (wint_t); 41 | int iswpunct (wint_t); 42 | int iswspace (wint_t); 43 | int iswupper (wint_t); 44 | int iswxdigit (wint_t); 45 | wint_t towctrans (wint_t, wctrans_t); 46 | wint_t towupper (wint_t); 47 | wint_t towlower (wint_t); 48 | wctrans_t wctrans (const char *); 49 | wctype_t wctype (const char *); 50 | 51 | #if __POSIX_VISIBLE >= 200809 52 | extern int iswalpha_l (wint_t, locale_t); 53 | extern int iswalnum_l (wint_t, locale_t); 54 | extern int iswblank_l (wint_t, locale_t); 55 | extern int iswcntrl_l (wint_t, locale_t); 56 | extern int iswctype_l (wint_t, wctype_t, locale_t); 57 | extern int iswdigit_l (wint_t, locale_t); 58 | extern int iswgraph_l (wint_t, locale_t); 59 | extern int iswlower_l (wint_t, locale_t); 60 | extern int iswprint_l (wint_t, locale_t); 61 | extern int iswpunct_l (wint_t, locale_t); 62 | extern int iswspace_l (wint_t, locale_t); 63 | extern int iswupper_l (wint_t, locale_t); 64 | extern int iswxdigit_l (wint_t, locale_t); 65 | extern wint_t towctrans_l (wint_t, wctrans_t, locale_t); 66 | extern wint_t towupper_l (wint_t, locale_t); 67 | extern wint_t towlower_l (wint_t, locale_t); 68 | extern wctrans_t wctrans_l (const char *, locale_t); 69 | extern wctype_t wctype_l (const char *, locale_t); 70 | #endif 71 | 72 | _END_STD_C 73 | 74 | #endif /* _WCTYPE_H_ */ 75 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/wordexp.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002, 2010 by Red Hat, Incorporated. All rights reserved. 2 | * 3 | * Permission to use, copy, modify, and distribute this software 4 | * is freely granted, provided that this notice is preserved. 5 | */ 6 | 7 | #ifndef _WORDEXP_H_ 8 | #define _WORDEXP_H_ 9 | 10 | #include 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif 15 | 16 | struct _wordexp_t 17 | { 18 | size_t we_wordc; /* Count of words matched by words. */ 19 | char **we_wordv; /* Pointer to list of expanded words. */ 20 | size_t we_offs; /* Slots to reserve at the beginning of we_wordv. */ 21 | }; 22 | 23 | typedef struct _wordexp_t wordexp_t; 24 | 25 | #define WRDE_DOOFFS 0x0001 /* Use we_offs. */ 26 | #define WRDE_APPEND 0x0002 /* Append to output from previous call. */ 27 | #define WRDE_NOCMD 0x0004 /* Don't perform command substitution. */ 28 | #define WRDE_REUSE 0x0008 /* pwordexp points to a wordexp_t struct returned from 29 | a previous successful call to wordexp. */ 30 | #define WRDE_SHOWERR 0x0010 /* Print error messages to stderr. */ 31 | #define WRDE_UNDEF 0x0020 /* Report attempt to expand undefined shell variable. */ 32 | 33 | enum { 34 | WRDE_SUCCESS, 35 | WRDE_NOSPACE, 36 | WRDE_BADCHAR, 37 | WRDE_BADVAL, 38 | WRDE_CMDSUB, 39 | WRDE_SYNTAX, 40 | WRDE_NOSYS 41 | }; 42 | 43 | /* Note: This implementation of wordexp requires a version of bash 44 | that supports the --wordexp and --protected arguments to be present 45 | on the system. It does not support the WRDE_UNDEF flag. */ 46 | int wordexp(const char *__restrict, wordexp_t *__restrict, int); 47 | void wordfree(wordexp_t *); 48 | 49 | #ifdef __cplusplus 50 | } 51 | #endif 52 | 53 | #endif /* _WORDEXP_H_ */ 54 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/include/xlocale.h: -------------------------------------------------------------------------------- 1 | /* Definition of opaque POSIX-1.2008 type locale_t for userspace. */ 2 | 3 | #ifndef _XLOCALE_H 4 | #define _XLOCALE_H 5 | 6 | #include 7 | #include 8 | 9 | struct __locale_t; 10 | typedef struct __locale_t *locale_t; 11 | 12 | #endif /* _XLOCALE_H */ 13 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/crt0.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/crt0.o -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libatomic.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libatomic.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libatomic.la: -------------------------------------------------------------------------------- 1 | # libatomic.la - a libtool library file 2 | # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # The name that we can dlopen(3). 8 | dlname='' 9 | 10 | # Names of this library. 11 | library_names='' 12 | 13 | # The name of the static archive. 14 | old_library='libatomic.a' 15 | 16 | # Linker flags that can not go in dependency_libs. 17 | inherited_linker_flags='' 18 | 19 | # Libraries that this one depends upon. 20 | dependency_libs='' 21 | 22 | # Names of additional weak libraries provided by this library 23 | weak_library_names='' 24 | 25 | # Version information for libatomic. 26 | current=3 27 | age=2 28 | revision=0 29 | 30 | # Is this an already installed library? 31 | installed=yes 32 | 33 | # Should we warn about portability when linking against -modules? 34 | shouldnotlink=no 35 | 36 | # Files to dlopen/dlpreopen 37 | dlopen='' 38 | dlpreopen='' 39 | 40 | # Directory that this library needs to be installed in: 41 | libdir='/opt/kendryte-toolchain/riscv64-unknown-elf/lib' 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libc.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libc.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libc_nano.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libc_nano.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libg.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libg.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libg_nano.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libg_nano.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libgloss.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libgloss.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libgloss_nano.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libgloss_nano.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libm.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libm.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libnosys.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libnosys.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libsim.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libsim.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libstdc++.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libstdc++.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libstdc++.la: -------------------------------------------------------------------------------- 1 | # libstdc++.la - a libtool library file 2 | # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # The name that we can dlopen(3). 8 | dlname='' 9 | 10 | # Names of this library. 11 | library_names='' 12 | 13 | # The name of the static archive. 14 | old_library='libstdc++.a' 15 | 16 | # Linker flags that can not go in dependency_libs. 17 | inherited_linker_flags='' 18 | 19 | # Libraries that this one depends upon. 20 | dependency_libs=' -lm' 21 | 22 | # Names of additional weak libraries provided by this library 23 | weak_library_names='' 24 | 25 | # Version information for libstdc++. 26 | current=6 27 | age=0 28 | revision=25 29 | 30 | # Is this an already installed library? 31 | installed=yes 32 | 33 | # Should we warn about portability when linking against -modules? 34 | shouldnotlink=no 35 | 36 | # Files to dlopen/dlpreopen 37 | dlopen='' 38 | dlpreopen='' 39 | 40 | # Directory that this library needs to be installed in: 41 | libdir='/opt/kendryte-toolchain/riscv64-unknown-elf/lib' 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libsupc++.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loboris/Kboot/eace934d87240538de0457570ce16cf4c1edfd0b/kendryte-toolchain/riscv64-unknown-elf/lib/libsupc++.a -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/libsupc++.la: -------------------------------------------------------------------------------- 1 | # libsupc++.la - a libtool library file 2 | # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # The name that we can dlopen(3). 8 | dlname='' 9 | 10 | # Names of this library. 11 | library_names='' 12 | 13 | # The name of the static archive. 14 | old_library='libsupc++.a' 15 | 16 | # Linker flags that can not go in dependency_libs. 17 | inherited_linker_flags='' 18 | 19 | # Libraries that this one depends upon. 20 | dependency_libs='' 21 | 22 | # Names of additional weak libraries provided by this library 23 | weak_library_names='' 24 | 25 | # Version information for libsupc++. 26 | current=0 27 | age=0 28 | revision=0 29 | 30 | # Is this an already installed library? 31 | installed=yes 32 | 33 | # Should we warn about portability when linking against -modules? 34 | shouldnotlink=no 35 | 36 | # Files to dlopen/dlpreopen 37 | dlopen='' 38 | dlpreopen='' 39 | 40 | # Directory that this library needs to be installed in: 41 | libdir='/opt/kendryte-toolchain/riscv64-unknown-elf/lib' 42 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/nano.specs: -------------------------------------------------------------------------------- 1 | %rename link nano_link 2 | %rename link_gcc_c_sequence nano_link_gcc_c_sequence 3 | %rename cpp nano_cpp 4 | 5 | *cpp: 6 | -isystem =/include/newlib-nano %(nano_cpp) 7 | 8 | *nano_libc: 9 | -lc_nano 10 | 11 | *nano_libgloss: 12 | %{specs=nosys.specs:-lnosys} %{!specs=nosys.specs:-lgloss_nano} 13 | 14 | *link_gcc_c_sequence: 15 | %(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group 16 | 17 | *link: 18 | %(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) 19 | 20 | *lib: 21 | %{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}} 22 | 23 | # ??? Maybe put --gc-sections option in here? 24 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/nosys.specs: -------------------------------------------------------------------------------- 1 | %rename link_gcc_c_sequence nosys_link_gcc_c_sequence 2 | 3 | *nosys_libgloss: 4 | -lnosys 5 | 6 | *nosys_libc: 7 | %{!specs=nano.specs:-lc} %{specs=nano.specs:-lc_nano} 8 | 9 | *link_gcc_c_sequence: 10 | %(nosys_link_gcc_c_sequence) --start-group %G %(nosys_libc) %(nosys_libgloss) --end-group 11 | 12 | -------------------------------------------------------------------------------- /kendryte-toolchain/riscv64-unknown-elf/lib/sim.specs: -------------------------------------------------------------------------------- 1 | # Spec file for gdb simulator. 2 | 3 | %rename lib sim_lib 4 | %rename link sim_link 5 | 6 | *lib: 7 | --start-group -lc -lsim --end-group 8 | 9 | *link: 10 | %(sim_link) %:replace-outfile(-lgloss -lsim) 11 | -------------------------------------------------------------------------------- /lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #project(maix_drivers) 2 | 3 | # create driver library 4 | 5 | FILE(GLOB_RECURSE LIB_SRC 6 | "${CMAKE_CURRENT_LIST_DIR}/*.h" 7 | "${CMAKE_CURRENT_LIST_DIR}/*.hpp" 8 | "${CMAKE_CURRENT_LIST_DIR}/*.c" 9 | "${CMAKE_CURRENT_LIST_DIR}/*.cpp" 10 | "${CMAKE_CURRENT_LIST_DIR}/*.s" 11 | "${CMAKE_CURRENT_LIST_DIR}/*.S" 12 | ) 13 | 14 | FILE(GLOB_RECURSE ASSEMBLY_FILES 15 | "${CMAKE_CURRENT_LIST_DIR}/*.s" 16 | "${CMAKE_CURRENT_LIST_DIR}/*.S" 17 | ) 18 | 19 | include_directories(${SDK_ROOT}/third_party/xtl/include) 20 | include_directories(${CMAKE_CURRENT_LIST_DIR}/drivers/include ${CMAKE_CURRENT_LIST_DIR}/bsp/include ${CMAKE_CURRENT_LIST_DIR}/nncase/include) 21 | 22 | SET_PROPERTY(SOURCE ${ASSEMBLY_FILES} PROPERTY LANGUAGE C) 23 | SET_SOURCE_FILES_PROPERTIES(${ASSEMBLY_FILES} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp -D __riscv64") 24 | 25 | ADD_LIBRARY(kendryte 26 | ${LIB_SRC} 27 | ) 28 | SET_TARGET_PROPERTIES(kendryte PROPERTIES LINKER_LANGUAGE C) 29 | -------------------------------------------------------------------------------- /src/bootloader_hi/crt.S: -------------------------------------------------------------------------------- 1 | # Copyright 2019 LoBo (https://github.com/loboris) 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | 16 | .section .text.start, "ax", @progbits 17 | .globl _start 18 | _start: 19 | # Jump directly to 'main' 20 | 21 | j main 22 | .ascii "Kboot_v1.4.1" 23 | .word 0 24 | -------------------------------------------------------------------------------- /src/bootloader_lo/crt.S: -------------------------------------------------------------------------------- 1 | # Copyright 2019 LoBo (https://github.com/loboris) 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | 16 | .section .text.start, "ax", @progbits 17 | .globl _start 18 | _start: 19 | # Jump directly to 'main' 20 | 21 | j main 22 | --------------------------------------------------------------------------------