From: Lunaixsky Date: Sat, 22 Jun 2024 14:16:00 +0000 (+0100) Subject: Decoupling Architectural-specific Code (#35) X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/commitdiff_plain/d1b1c8d9119229dbeed06cd252917e54a1cb77f6?ds=inline;hp=d1b1c8d9119229dbeed06cd252917e54a1cb77f6 Decoupling Architectural-specific Code (#35) * add headers for generic arch implementation * restructure the arch-dependent file, better separation * populate generic architecture for templating * more cleaning and refactoring to keep things stay decoupled * allow architectural specific code to override klib functions. * merge lib/ into klibc for uniformity * add x86 specific crc32 implementation, require SSE4 extension * rename isr_param to more general hart_state * isolate: direct reference of memeber inside hart_state * isolate the hstate dumping part of trace.h. * general clean up * decouple gdbstub from architectual code. * fix the trace_log missing component name * add reg_t to shadow the explicit typed register value * rename hart_change_execution to hart_flow_redirect ---