vmcore: add API to collect hardware dump in second kernel