Skip to content

Instantly share code, notes, and snippets.

@michaeljclark
Created October 18, 2018 11:29
Show Gist options
  • Save michaeljclark/a02ba9361805125538ce09ebbadae89e to your computer and use it in GitHub Desktop.
Save michaeljclark/a02ba9361805125538ce09ebbadae89e to your computer and use it in GitHub Desktop.
--- linux-4.19-rc8.orig/arch/riscv/kernel/setup.c 2018-10-15 18:20:24.000000000 +1300
+++ linux-4.19-rc8/arch/riscv/kernel/setup.c 2018-10-19 00:25:54.571772704 +1300
@@ -227,7 +227,9 @@
setup_bootmem();
paging_init();
unflatten_device_tree();
+#ifdef CONFIG_SWIOTLB
swiotlb_init(1);
+#endif
#ifdef CONFIG_SMP
setup_smp();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment