Date: Wed, 12 Apr 2017 10:34:50 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316728 - head/sys/riscv/riscv Message-ID: <201704121034.v3CAYoY3078670@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Wed Apr 12 10:34:50 2017 New Revision: 316728 URL: https://svnweb.freebsd.org/changeset/base/316728 Log: Provide a NULL pointer to device tree blob so GENERIC kernel can be compiled. We will need to get pointer to DTB from hardware, so mark as TODO. Sponsored by: DARPA, AFRL Modified: head/sys/riscv/riscv/machdep.c Modified: head/sys/riscv/riscv/machdep.c ============================================================================== --- head/sys/riscv/riscv/machdep.c Wed Apr 12 09:22:02 2017 (r316727) +++ head/sys/riscv/riscv/machdep.c Wed Apr 12 10:34:50 2017 (r316728) @@ -718,7 +718,12 @@ try_load_dtb(caddr_t kmdp) { vm_offset_t dtbp; +#if defined(FDT_DTB_STATIC) dtbp = (vm_offset_t)&fdt_static_dtb; +#else + /* TODO */ + dtbp = (vm_offset_t)NULL; +#endif if (dtbp == (vm_offset_t)NULL) { printf("ERROR loading DTB\n"); return;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704121034.v3CAYoY3078670>