fangxinyong
55d7708fa0
boards/arm/qemu: enable kernel build for armv7a
...
See Documentation/platforms/arm/qemu/boards/qemu-armv7a/README.txt for details
Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2024-10-12 09:28:45 +08:00
yanghuatao
323ee075be
nuttx/qemu: Fix funciton up_idle multiple definition
...
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com>
2024-10-12 09:28:45 +08:00
ligd
994e15710f
goldfish: sync with qemu do rpmsg_syslog init at goldfish
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2024-10-11 22:42:34 +08:00
Bowen Wang
a1f3800a9d
arm_gicv2_dump: optimize gic dump
...
1. Add config CONFIG_ARMV7A_GICv2_DUMP to control gic dump,
because irqinfo introduce too much other log;
2. Change the log api from irqinfo() to syslog(), syslog not
append the function name in the log, so the gic dump format
will not be destoried.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-11 19:56:41 +08:00
liwenxiang1
9eb7665822
arch/x86_64:Change extern g_intstackalloc to g_isrstackalloc
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-11 19:55:50 +08:00
wangyongrong
933e066118
common/Toolchain.defs: support CONFIG_DEBUG_NOOPT for x86_64
...
Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
2024-10-11 17:21:06 +08:00
Bowen Wang
20db146b64
x86/x86_64: change the build result from nuttx.elf to nuttx
...
Just sync with other architecture.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-11 17:20:15 +08:00
lipengfei28
631b551727
goldfish add gicv2m support
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 17:06:16 +08:00
lipengfei28
78a6ba6d5f
PFU: do not cause execution of any instructions to be trapped
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 17:04:28 +08:00
Bowen Wang
313d6df787
include/nuttx.h: replace all the align macros to nuttx version
...
1. add IS_ALIGNED() definitions for NuttX;
2. replace all the ALIGN_UP() and ALIGN_DOWN() to use common
align implementation;
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-11 16:55:43 +08:00
ouyangxiangzhen
0936c97d3e
arch/x86_64: Fix SMP startup for ACRN Hypervisor
...
This patch fixed SMP startup for ACRN Hypervisor.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-11 15:43:01 +08:00
liwenxiang1
9189800760
arch/x86_64:Add configuration to disable vectorization optimization
...
With aggresive optimization enabled (-O3), ostest FPU test will fail.This is because the compiler will generate additional vector instructions between subsequent up_fpucmp() calls (loop vectorization somewhere in usleep() call), which will consequently overwrite the expected FPU context (XMM registers).The compilation option -fno-tree-vectorize can avoid this issue.
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-11 15:40:55 +08:00
andi6
19e34b7f6e
x64: modify addr limit to support 64 bits addr backtrace
...
Signed-off-by: andi6 <andi6@xiaomi.com>
2024-10-11 15:32:28 +08:00
cuiziwei
5e96e72cb6
X86_64: Add libcxx availability macros.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-11 13:53:10 +08:00
cuiziwei
1816d752af
arch/x86_64:Fix build cxx warning.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-11 13:46:27 +08:00
lipengfei28
274ca2ea65
arch: arm64: Fix ARM64_CONTEXT_REGS number
...
This commit fixes the regression in https://github.com/apache/nuttx/pull/14063
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 13:26:54 +08:00
anjiahao
5076b0c74c
risc-v:Unify module compilation options
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2024-10-11 11:20:45 +08:00
yinshengkai
211a56910a
syslog: support syslog redirection to sched_note
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-11 01:30:11 +08:00
Xu Xingliang
f68d594420
arch/arm64: rename register names to align with arm32
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-11 01:17:24 +08:00
wangmingrong1
ec3c27df0d
makefile/clang: Compare versions for upward compatibility
...
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-11 00:45:39 +08:00
yinshengkai
02eb280302
arch/perf: modify the return value of up_perf_gettime to clock_t
...
When using alarm_arch implementation, 64-bit time can be returned. Using unsign long will cause precision loss.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-10 23:17:14 +08:00
p-szafonimateusz
ed71aa810e
arch/x86_64/intel64/intel64_irq.c: fix busy irq logic
...
use correct macro for cpu_set_t busy variable and remove obsolote check
also remove not needed #include <sched.h> and "Public data"
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
2024-10-10 22:57:04 +08:00
yinshengkai
8abbd3cde5
nuttx-names.in: add feof
...
When running gcov in sim, nuttx feof is called and causes crash
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-10 22:55:04 +08:00
liwenxiang1
fee7e0ce81
arch/x86_64:Add macros related to CPUID
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 15:07:45 +02:00
ouyangxiangzhen
d0779e0eef
arch/x86_64: Fix up_timer compilation error
...
This commit fix up_timer compilation error.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-10 15:07:22 +02:00
ouyangxiangzhen
e6548ead20
arch/x86_64: Fix up_timer_start
...
Fix according to up_alarm_start.
Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
2024-10-10 15:07:22 +02:00
yinshengkai
d375a09c0a
libs: add gprof arm64 support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-10 18:46:51 +08:00
yinshengkai
eb8449cb0c
sched/gprof: add gprof support
...
gprof can analyze code hot spots based on scheduled sampling.
After adding the "-pg" parameter when compiling, you can view the code call graph.
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-10 18:46:51 +08:00
Eren Terzioglu
f774afb4d9
esp32[s3|s2]: Add temperature sensor thread support
2024-10-10 18:45:01 +08:00
Eren Terzioglu
7556614732
esp32[c3|c6|h2]: Add temperature sensor thread support
2024-10-10 18:45:01 +08:00
Eren Terzioglu
4060f6ba80
esp32[s2|s3]: Add UORB support for internal temperature sensor
2024-10-10 18:45:01 +08:00
Eren Terzioglu
929f9ccfa2
esp32[c3|c6|h2]: Add UORB support for internal temperature sensor
2024-10-10 18:45:01 +08:00
hujun5
7216d566a6
sim: only POSIX implementation (ARCH_HAVE_MULTICPU) is provided
...
This commit fixes the regression from https://github.com/apache/nuttx/pull/13886
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-10 18:38:25 +08:00
liwenxiang1
24f54ba712
arch/x86_64: cache convert all asm() to __asm__()
...
asm() is not supported by -std=c99, __asm__() is more portable
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 18:36:09 +08:00
andi6
2ed88f8813
x64: add acrn ioapic init support
...
if we two step to set interrupt trigger and disable interrupt,
acrn will inject #GP exception
Signed-off-by: andi6 <andi6@xiaomi.com>
2024-10-10 17:49:40 +08:00
liwenxiang1
8d2fc5c9ee
arch/x86_64:Add nanosecond delay interface to TSC
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 17:13:01 +08:00
cuiziwei
f86644141b
x86_64:Fix ld error.
...
LD: nuttx.elf
ld:in function `std::__1::ios_base::imbue(std::__1::locale const&)':
nuttx/libs/libxx/libcxx/src/ios.cpp:129: undefined reference to `_Unwind_Resume'
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-10 16:51:38 +08:00
wangming9
1c2856dfcb
arch/arm64: Fixed up_getusrsp getting stack Pointers
...
Signed-off-by: wangming9 <wangming9@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-10 15:40:03 +08:00
wangming9
b0ea6840e1
arch/arm64: Use serr to print fatal error messages.
...
Summary:
sinfo cannot print fatal error messages when CONFIG_DEBUG_SCHED_INFO is turned off.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2024-10-10 15:40:03 +08:00
wangming9
27d77b1aca
arch/arm64: Fixed GIC3 for goldfish platform
...
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2024-10-10 15:40:03 +08:00
wangming9
b3e640cf3f
arch/arm64: GICv2 detection is compatible with different qemu versions
...
Summary:
- GICv2 cannot be detected on the golsfish platform
- Golsfish uses version 2.12.0 of qemu with a GICC_IIDR value of 0,
read ICPIDR2 to determine the GIC version
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2024-10-10 15:40:03 +08:00
Bowen Wang
a847ee1675
qmeu_boot: add rpmsg syslog init for arm64 qemu chip
...
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-10 15:40:03 +08:00
wangming9
e48b81ebe9
arch/arm64: Supports cluster PMU
...
Summary:
Some processors implement cluster PMUs, such as Cortex-R82.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2024-10-10 15:40:03 +08:00
wangming9
fa96350574
arch/arm64: Modify the method for obtaining the CPU frequency
...
Summary:
1、cntfrq_el0 is used to store the timer frequency, which may
be different from the CPU frequency.
2、Do not use up_perf interface for SMP.
Signed-off-by: wangming9 <wangming9@xiaomi.com>
2024-10-10 15:40:03 +08:00
yangguangcai
e9b77833e3
goldfish:config pl031.
...
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>
2024-10-10 15:40:03 +08:00
liwenxiang1
f858026819
arch/x86_64:Add allsymbol functionality
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 14:56:08 +08:00
Huang Qi
20cba94a86
risc-v/espressif: Fix alert message in esp_setup_irq()
...
Correct the alert message in `esp_setup_irq()` if
irq number allocation fails, the parameter number is not
matched with format specifier.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2024-10-10 13:41:34 +08:00
liwenxiang1
e3b3a6145a
arch/x86_64: idle convert all asm() to __asm__()
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 13:40:39 +08:00
liwenxiang1
1af831e139
arch/x86_64: cpuid expect 32 bit variables
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 12:03:27 +08:00
liwenxiang1
2448e8a59e
arch/x86_64:Add perf tool
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-10 12:01:16 +08:00