Changeset ae8d7b0 in mainline for boot/arch/riscv64/include


Ignore:
Timestamp:
2017-08-21T18:23:39Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c58441d
Parents:
fdc29300
Message:

riscv64: update to the latest Privileged Architecture specification (1.10)

Location:
boot/arch/riscv64/include
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/riscv64/include/arch.h

    rfdc29300 rae8d7b0  
    3535#define BOOT_STACK_SIZE  PAGE_SIZE
    3636
     37#define PHYSMEM_START  0x40000000
     38#define PHYSMEM_SIZE   1073741824
     39#define BOOT_OFFSET    0x48000000
     40
    3741#define DEFAULT_MTVEC      0x00000100
    3842#define TRAP_VECTOR_RESET  0x0100
  • boot/arch/riscv64/include/asm.h

    rfdc29300 rae8d7b0  
    3232#include <stddef.h>
    3333
    34 extern void jump_to_kernel(void *, uintptr_t)
     34extern char htif_page[];
     35extern char pt_page[];
     36
     37extern void jump_to_kernel(uintptr_t)
    3538    __attribute__((noreturn));
    3639
  • boot/arch/riscv64/include/types.h

    rfdc29300 rae8d7b0  
    4242
    4343typedef struct {
     44        volatile uint64_t *tohost;
     45        volatile uint64_t *fromhost;
     46} ucbinfo_t;
     47
     48typedef struct {
    4449        void *start;
    4550        size_t size;
     
    6772
    6873typedef struct {
     74        ucbinfo_t ucbinfo;
     75        uintptr_t physmem_start;
     76        uintptr_t htif_frame;
     77        uintptr_t pt_frame;
    6978        memmap_t memmap;
    7079        taskmap_t taskmap;
  • boot/arch/riscv64/include/ucb.h

    rfdc29300 rae8d7b0  
    3838#include <stddef.h>
    3939
    40 #define CSR_MTOHOST    0x780
    41 #define CSR_MFROMHOST  0x781
     40extern volatile uint64_t tohost;
     41extern volatile uint64_t fromhost;
    4242
    4343#define HTIF_DEVICE_CONSOLE  1
Note: See TracChangeset for help on using the changeset viewer.