Changeset 05b3640 in mainline


Ignore:
Timestamp:
2017-08-21T18:40:26Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f2926a
Parents:
fcfe416
Message:

riscv64: update boot interface

Location:
kernel/arch/riscv64
Files:
1 added
1 edited

Legend:

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

    rfcfe416 r05b3640  
    3636#define KERN_riscv64_BOOT_H_
    3737
    38 #define BOOT_OFFSET  0x200000
     38#define BOOT_OFFSET  0x48000000
    3939
    4040#define TASKMAP_MAX_RECORDS        32
    4141#define MEMMAP_MAX_RECORDS         32
    4242#define BOOTINFO_TASK_NAME_BUFLEN  32
     43
     44/* Temporary stack size for boot process */
     45#define TEMP_STACK_SIZE  0x1000
    4346
    4447#ifndef __ASM__
     
    4750#include <stdint.h>
    4851#include <config.h>
     52
     53typedef struct {
     54        volatile uint64_t *tohost;
     55        volatile uint64_t *fromhost;
     56} ucbinfo_t;
     57
     58typedef struct {
     59        void *start;
     60        size_t size;
     61} memzone_t;
     62
     63typedef struct {
     64        uint64_t total;
     65        size_t cnt;
     66        memzone_t zones[MEMMAP_MAX_RECORDS];
     67} memmap_t;
    4968
    5069typedef struct {
     
    6079
    6180typedef struct {
    62         void *start;
    63         size_t size;
    64 } memzone_t;
    65 
    66 typedef struct {
    67         uint64_t total;
    68         size_t cnt;
    69         memzone_t zones[MEMMAP_MAX_RECORDS];
    70 } memmap_t;
    71 
    72 typedef struct {
     81        ucbinfo_t ucbinfo;
     82        uintptr_t physmem_start;
     83        uintptr_t htif_frame;
     84        uintptr_t pt_frame;
    7385        memmap_t memmap;
    7486        taskmap_t taskmap;
    75         ballocs_t ballocs;
    7687} bootinfo_t;
    77 
    78 extern memmap_t memmap;
    7988
    8089#endif
Note: See TracChangeset for help on using the changeset viewer.