File tree 4 files changed +20
-29
lines changed
external/refsidrv/source/refsidrv
4 files changed +20
-29
lines changed Original file line number Diff line number Diff line change 28
28
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
29
29
// window is set up to map this memory area to a reserved area in DMA.
30
30
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull ;
31
- // The upper region can be up to the tdcm start point at 0x10000000
32
- // We will make it approx 128MB to give some latitude
33
- constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27 ) - REFSI_ELF_BASE;
31
+ constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20 ) - REFSI_ELF_BASE;
34
32
35
33
// Memory area for per-hart storage.
36
34
constexpr const uint64_t G_HART_LOCAL_BASE = 0x20800000 ;
Original file line number Diff line number Diff line change 17
17
18
18
OUTPUT_ARCH ( "riscv" )
19
19
20
+ MEMORY
21
+ {
22
+ mainmem : ORIGIN = 0x10000, LENGTH = (1 << 20)
23
+ localmem : ORIGIN = 0x10000000, LENGTH = 0x200000
24
+ }
25
+
20
26
SECTIONS
21
27
{
22
28
23
29
/*--------------------------------------------------------------------*/
24
30
/* Code and read-only segment */
25
31
/*--------------------------------------------------------------------*/
26
32
27
- /* Begining of code and text segment */
28
- . = 0x00010000;
29
-
30
- .text :
31
- {
33
+ .text : {
32
34
*(.text.init)
33
- }
35
+ } >mainmem
34
36
35
37
/* text : Program code section */
36
- .text :
38
+ .text :
37
39
{
38
40
*(.text)
39
41
*(.text.*)
40
42
*(.gnu.linkonce.t.*)
41
- }
43
+ } >mainmem
42
44
43
45
/* rodata : Read-only data */
44
- .rodata :
46
+ .rodata :
45
47
{
46
48
*(.rdata)
47
49
*(.rodata)
48
50
*(.rodata.*)
49
51
*(.gnu.linkonce.r.*)
50
- }
52
+ } >mainmem
51
53
52
54
/* End of code and read-only segment */
53
- . = ALIGN (0x1000);
54
55
55
56
/*--------------------------------------------------------------------*/
56
57
/* Initialized data segment */
57
58
/*--------------------------------------------------------------------*/
58
59
59
60
/* data : Writable data */
60
- .data :
61
+ .data ALIGN (0x1000) :
61
62
{
62
63
*(.data)
63
64
*(.data.*)
64
65
*(.srodata*)
65
66
*(.gnu.linkonce.d.*)
66
67
*(.comment)
67
- }
68
+ } >mainmem
68
69
69
70
/* End of initialized data segment */
70
- . = ALIGN (16);
71
71
72
72
/*--------------------------------------------------------------------*/
73
73
/* Uninitialized data segment */
@@ -81,26 +81,23 @@ SECTIONS
81
81
82
82
/* bss : Uninitialized writeable data section */
83
83
. = .;
84
- .bss :
84
+ .bss ALIGN (16) :
85
85
{
86
86
*(.bss)
87
87
*(.bss.*)
88
88
*(.sbss*)
89
89
*(.gnu.linkonce.b.*)
90
90
*(COMMON)
91
- }
91
+ } >mainmem
92
92
93
93
94
94
/*--------------------------------------------------------------------*/
95
95
/* Local memory */
96
96
/*--------------------------------------------------------------------*/
97
-
98
- . = 0x10000000;
99
-
100
97
.local :
101
98
{
102
99
*(.local)
103
- }
100
+ } >localmem
104
101
105
102
/DISCARD/ : { *(.note.gnu.build-id) }
106
103
}
Original file line number Diff line number Diff line change 30
30
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
31
31
// window is set up to map this memory area to a reserved area in DMA.
32
32
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull ;
33
- // The upper region can be up to the tdcm start point at 0x10000000
34
- // We will make it approx 128MB to give some latitude
35
- constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27 ) - REFSI_ELF_BASE;
33
+ constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20 ) - REFSI_ELF_BASE;
36
34
37
35
constexpr const uint64_t REFSI_MAX_HARTS = 64 ;
38
36
Original file line number Diff line number Diff line change 29
29
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
30
30
// window is set up to map this memory area to a reserved area in DMA.
31
31
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull ;
32
- // The upper region can be up to the tdcm start point at 0x10000000
33
- // We will make it approx 128MB to give some latitude
34
- constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27 ) - REFSI_ELF_BASE;
32
+ constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20 ) - REFSI_ELF_BASE;
35
33
36
34
refsi_m1_hal_device::refsi_m1_hal_device (refsi_device_t device,
37
35
riscv::hal_device_info_riscv_t *info,
You can’t perform that action at this time.
0 commit comments