Hifive1 revb uart interrupt

Everybody help me .
How do I implement the interrupt with the library used by “metal”.