This page has been a big help in adding support for this new chip: https://wiki.osdev.org/HiFive-1_Bare_Bones