kboot: Only initialize PCIe when booting a kernel payload

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-05-28 00:04:19 +09:00
parent bd8ae6f4f6
commit a21e46031e
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#include "exception.h"
#include "malloc.h"
#include "memory.h"
#include "pcie.h"
#include "smp.h"
#include "types.h"
#include "utils.h"
@ -301,6 +302,8 @@ int kboot_prepare_dt(void *fdt)
int kboot_boot(void *kernel)
{
pcie_init();
printf("Preparing to boot kernel at %p with fdt at %p\n", kernel, dt);
next_stage.entry = kernel;

View file

@ -83,7 +83,6 @@ void m1n1_main(void)
print_info();
wdt_disable();
pmgr_init();
pcie_init();
printf("Initialization complete.\n");