mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
Compare commits
No commits in common. "a324ce792a2d1b84a315a025bea0a0cbaa9ab55e" and "2ef2c7de2747ad987e82b892a45a9a7c083aa448" have entirely different histories.
a324ce792a
...
2ef2c7de27
5 changed files with 12 additions and 14 deletions
|
@ -70,11 +70,11 @@ SECTIONS
|
|||
|
||||
_gint_exch_start = . ;
|
||||
KEEP(*(.gint.exch))
|
||||
_gint_exch_end = . ;
|
||||
_gint_exch_size = ABSOLUTE(. - _gint_exch_start);
|
||||
|
||||
_gint_tlbh_start = . ;
|
||||
KEEP(*(.gint.tlbh))
|
||||
_gint_tlbh_end = . ;
|
||||
_gint_tlbh_size = ABSOLUTE(. - _gint_tlbh_start);
|
||||
|
||||
*(.text .text.*)
|
||||
*(C P)
|
||||
|
|
|
@ -59,11 +59,11 @@ SECTIONS
|
|||
|
||||
_gint_exch_start = . ;
|
||||
KEEP(*(.gint.exch))
|
||||
_gint_exch_end = . ;
|
||||
_gint_exch_size = ABSOLUTE(. - _gint_exch_start);
|
||||
|
||||
_gint_tlbh_start = . ;
|
||||
KEEP(*(.gint.tlbh))
|
||||
_gint_tlbh_end = . ;
|
||||
_gint_tlbh_size = ABSOLUTE(. - _gint_tlbh_start);
|
||||
|
||||
*(.text .text.*)
|
||||
} > rom
|
||||
|
|
|
@ -68,12 +68,12 @@ SECTIONS
|
|||
. = ALIGN(0x10);
|
||||
_gint_exch_start = . ;
|
||||
*(.gint.exch)
|
||||
_gint_exch_end = . ;
|
||||
_gint_exch_size = ABSOLUTE(. - _gint_exch_start);
|
||||
|
||||
. = ALIGN(0x10);
|
||||
_gint_tlbh_start = . ;
|
||||
*(.gint.tlbh)
|
||||
_gint_tlbh_end = . ;
|
||||
_gint_tlbh_size = ABSOLUTE(. - _gint_tlbh_start);
|
||||
|
||||
*(.text .text.*)
|
||||
} > ram AT> bin
|
||||
|
|
|
@ -76,15 +76,9 @@ void kinit(void)
|
|||
#endif
|
||||
|
||||
/* Event handler entry points */
|
||||
extern uint32_t gint_exch_start;
|
||||
extern uint32_t gint_exch_end;
|
||||
extern uint32_t gint_tlbh_start;
|
||||
extern uint32_t gint_tlbh_end;
|
||||
void *inth_entry = isSH3() ? gint_inth_7705 : gint_inth_7305;
|
||||
uint32_t exch_size = \
|
||||
(uint32_t)&gint_exch_end - (uint32_t)&gint_exch_start;
|
||||
uint32_t tlbh_size = \
|
||||
(uint32_t)&gint_tlbh_end - (uint32_t)&gint_tlbh_start;
|
||||
uint32_t exch_size = (uint32_t)&gint_exch_size;
|
||||
uint32_t tlbh_size = (uint32_t)&gint_tlbh_size;
|
||||
|
||||
/* Load the event handler entry points into memory */
|
||||
memcpy((void *)VBR + 0x100, gint_exch, exch_size);
|
||||
|
|
|
@ -11,4 +11,8 @@ void gint_tlbh(void);
|
|||
void gint_inth_7705(void);
|
||||
void gint_inth_7305(void);
|
||||
|
||||
/* Size of exception and TLB handlers */
|
||||
extern char gint_exch_size;
|
||||
extern char gint_tlbh_size;
|
||||
|
||||
#endif /* GINT_CORE_VBR */
|
||||
|
|
Loading…
Reference in a new issue