mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
WiFi/BLE ROM
This commit is contained in:
@@ -71,3 +71,8 @@ func (s *state) pause() {
|
|||||||
func SystemStack() uintptr {
|
func SystemStack() uintptr {
|
||||||
return *runtime_systemStackPtr()
|
return *runtime_systemStackPtr()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//export tinygo_task_current
|
||||||
|
func tinygo_task_current() unsafe.Pointer {
|
||||||
|
return unsafe.Pointer(Current())
|
||||||
|
}
|
||||||
|
|||||||
+8
-3
@@ -29,9 +29,12 @@
|
|||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
/* Note: DRAM and IRAM below are actually in the same 384K address space. */
|
/* Note: DRAM and IRAM below are actually in the same 384K address space.
|
||||||
DRAM (rw) : ORIGIN = 0x3FC80000, LENGTH = 384K /* Internal SRAM 1 (data bus) */
|
* WiFi/BLE ROM variables occupy 0x3FCCE710..0x3FCDFFFC, so DRAM must
|
||||||
IRAM (x) : ORIGIN = 0x40380000, LENGTH = 384K /* Internal SRAM 1 (instruction bus) */
|
* stop before that boundary to prevent the Go heap from overwriting them.
|
||||||
|
*/
|
||||||
|
DRAM (rw) : ORIGIN = 0x3FC80000, LENGTH = 0x4E710 /* ends at 0x3FCCE710 — WiFi/ROM boundary */
|
||||||
|
IRAM (x) : ORIGIN = 0x40380000, LENGTH = 0x4E710
|
||||||
|
|
||||||
/* Note: DROM and IROM below are actually in the same 8M address space. */
|
/* Note: DROM and IROM below are actually in the same 8M address space. */
|
||||||
DROM (r) : ORIGIN = 0x3C000000, LENGTH = 8M /* Data bus (read-only) */
|
DROM (r) : ORIGIN = 0x3C000000, LENGTH = 8M /* Data bus (read-only) */
|
||||||
@@ -59,6 +62,7 @@ SECTIONS
|
|||||||
.rodata : ALIGN(4)
|
.rodata : ALIGN(4)
|
||||||
{
|
{
|
||||||
*(.rodata*)
|
*(.rodata*)
|
||||||
|
*(.srodata*)
|
||||||
. = ALIGN (4);
|
. = ALIGN (4);
|
||||||
} >DROM
|
} >DROM
|
||||||
|
|
||||||
@@ -83,6 +87,7 @@ SECTIONS
|
|||||||
. = ALIGN (4);
|
. = ALIGN (4);
|
||||||
_sbss = ABSOLUTE(.);
|
_sbss = ABSOLUTE(.);
|
||||||
*(.sbss)
|
*(.sbss)
|
||||||
|
*(.sbss.*)
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
. = ALIGN (4);
|
. = ALIGN (4);
|
||||||
_ebss = ABSOLUTE(.);
|
_ebss = ABSOLUTE(.);
|
||||||
|
|||||||
Reference in New Issue
Block a user