906da88291
Configurations w/o vecbase may have vectors not grouped together and not in fixed order. They may not always be grouped into single output sections by assigning next offset to dot, as it may sometimes move dot backwards and sometimes they may even belong to different memory region. Don't group vectors into single output section. Instead put each vector into its own section ant put it at its default virtual address. Reserve 4KBytes from the default vectors base and put rest of the code and data starting from there. Mark vectors sections as executable, otherwise their contents is discarded. There may be as little as 16 bytes reserved for some vectors, load handler address into a0 and use ret.n to jump there to make vector code fit into this 16 byte space. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> |
||
---|---|---|
.. | ||
crt.S | ||
linker.ld.S | ||
macros.inc | ||
Makefile | ||
test_b.S | ||
test_bi.S | ||
test_boolean.S | ||
test_break.S | ||
test_bz.S | ||
test_cache.S | ||
test_clamps.S | ||
test_extui.S | ||
test_fail.S | ||
test_interrupt.S | ||
test_loop.S | ||
test_mac16.S | ||
test_max.S | ||
test_min.S | ||
test_mmu.S | ||
test_mul16.S | ||
test_mul32.S | ||
test_nsa.S | ||
test_phys_mem.S | ||
test_pipeline.S | ||
test_quo.S | ||
test_rem.S | ||
test_rst0.S | ||
test_s32c1i.S | ||
test_sar.S | ||
test_sext.S | ||
test_shift.S | ||
test_sr.S | ||
test_timer.S | ||
test_windowed.S | ||
vectors.S |