mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
PIC32MZ: Fixes from Kristopher Tate
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
/* Exported symbols */
|
/* Exported symbols */
|
||||||
|
|
||||||
.globl __reset
|
.global __reset
|
||||||
.global __start
|
.global __start
|
||||||
.global halt
|
.global halt
|
||||||
.global devcfg
|
.global devcfg
|
||||||
@@ -371,7 +371,7 @@ __start:
|
|||||||
|
|
||||||
la sp, PIC32MZ_STACK_TOP
|
la sp, PIC32MZ_STACK_TOP
|
||||||
|
|
||||||
/* Initialize the globl pointer (gp). _gp is initialized by the linker
|
/* Initialize the global pointer (gp). _gp is initialized by the linker
|
||||||
* script to point to the "middle" of the small variables region.
|
* script to point to the "middle" of the small variables region.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ static uintptr_t pic32mz_iec(int irq)
|
|||||||
{
|
{
|
||||||
if ((unsigned)irq < NR_IRQS)
|
if ((unsigned)irq < NR_IRQS)
|
||||||
{
|
{
|
||||||
return PIC32MZ_INT_IEC_OFFSET(irq);
|
return PIC32MZ_INT_IEC(irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -143,7 +143,7 @@ static uintptr_t pic32mz_iecset(int irq)
|
|||||||
{
|
{
|
||||||
if ((unsigned)irq < NR_IRQS)
|
if ((unsigned)irq < NR_IRQS)
|
||||||
{
|
{
|
||||||
return PIC32MZ_INT_IECSET_OFFSET(irq);
|
return PIC32MZ_INT_IECSET(irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -157,7 +157,7 @@ static uintptr_t pic32mz_iecclr(int irq)
|
|||||||
{
|
{
|
||||||
if ((unsigned)irq < NR_IRQS)
|
if ((unsigned)irq < NR_IRQS)
|
||||||
{
|
{
|
||||||
return PIC32MZ_INT_IECCLR_OFFSET(irq);
|
return PIC32MZ_INT_IECCLR(irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ MEMORY
|
|||||||
* for use by MPLABX and 128 for DSP register storage.
|
* for use by MPLABX and 128 for DSP register storage.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
kseg1_datamem (w!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
|
kseg1_datamem (rw!x) : ORIGIN = 0xa0000200, LENGTH = 512K - 640
|
||||||
}
|
}
|
||||||
|
|
||||||
OUTPUT_FORMAT("elf32-littlemips")
|
OUTPUT_FORMAT("elf32-tradlittlemips")
|
||||||
OUTPUT_ARCH(mips)
|
OUTPUT_ARCH(mips)
|
||||||
ENTRY(__start)
|
ENTRY(__start)
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ SECTIONS
|
|||||||
|
|
||||||
_data_loaddr = LOADADDR(.data);
|
_data_loaddr = LOADADDR(.data);
|
||||||
|
|
||||||
.eh_frame_hdr : { *(.eh_frame_hdr) }
|
.eh_frame_hdr : { *(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*) }
|
||||||
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
|
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
|
||||||
|
|
||||||
/* RAM functions are positioned at the beginning of RAM so that
|
/* RAM functions are positioned at the beginning of RAM so that
|
||||||
|
|||||||
Reference in New Issue
Block a user