Skip to content

add VisionFive v1/v2#99

Closed
axel-h wants to merge 36 commits intomasterfrom
patch-axel-91
Closed

add VisionFive v1/v2#99
axel-h wants to merge 36 commits intomasterfrom
patch-axel-91

Conversation

@axel-h
Copy link
Owner

@axel-h axel-h commented Apr 28, 2023

Signed-off-by: Ivan-Velickovic <[email protected]>
Similarly to the U54-MC, the U74-MC has a S-core that does not run in
supervisor mode.

Signed-off-by: Ivan-Velickovic <[email protected]>
@axel-h axel-h force-pushed the patch-axel-91 branch 4 times, most recently from 8a3d709 to b338296 Compare May 2, 2023 14:40
@axel-h axel-h force-pushed the patch-axel-91 branch 3 times, most recently from 4a57d35 to 8c45d16 Compare May 8, 2023 00:39
axel-h added 20 commits June 7, 2023 18:47
The naming is more intuitive this way and the classes show up together
in the IDE outline.

Signed-off-by: Axel Heider <[email protected]>
The generic kernel header file object/structures.h already defined the
macro WORD_PTR().

Signed-off-by: Axel Heider <[email protected]>
Remove indirection and stick to one name.

Signed-off-by: Axel Heider <[email protected]>
Avoid raw numbers build values from the definitions.

Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
This also fixes a QEMU problem happening rarely.

Signed-off-by: Axel Heider <[email protected]>
Stick to the logic core view in the generic code and resolve the mask at
the lowest layer instead.

Signed-off-by: Axel Heider <[email protected]>
The idle thread does not have any stack, thus implementing the function
in assembler avoids convincing the compiler not to use any stack for a
C function.

Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
Debugging improvements: 
- Mark the trap handler as a function, so it's not just an arbitrary
  symbol for the linker.
- Force trap entry to be at the start of the kernel runtime image, so
  the linker does not put it at arbitrary locations. Page alignment is
  not required on RISC-V for the vector base address, 4-byte alignment
  is enough.

Signed-off-by: Axel Heider <[email protected]>
Consolidate functions to avoid redundancy.

Signed-off-by: Axel Heider <[email protected]>
@axel-h axel-h force-pushed the patch-axel-91 branch 3 times, most recently from 34f516d to efadeea Compare June 7, 2023 17:59
axel-h added 10 commits June 7, 2023 22:42
- prototype for ipi_send_target() is in include/smp/ipi.h
- add comment what conditional block ended
- avoid unnecessary includes

Signed-off-by: Axel Heider <[email protected]>
Allwinner D1 SOC with T-Head XuanTie C906 (RV64GCV)

Signed-off-by: Axel Heider <[email protected]>
Signed-off-by: Axel Heider <[email protected]>
wip
@axel-h axel-h closed this Jun 7, 2023
@axel-h axel-h deleted the patch-axel-91 branch June 7, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants