Deleted Added
full compact
machdep.c (295972) machdep.c (296189)
1/*-
2 * Copyright (c) 2014 Andrew Turner
3 * Copyright (c) 2015-2016 Ruslan Bukin <br@bsdpad.com>
4 * All rights reserved.
5 *
6 * Portions of this software were developed by SRI International and the
7 * University of Cambridge Computer Laboratory under DARPA/AFRL contract
8 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.

--- 22 unchanged lines hidden (view full) ---

31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 */
35
36#include "opt_platform.h"
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2014 Andrew Turner
3 * Copyright (c) 2015-2016 Ruslan Bukin <br@bsdpad.com>
4 * All rights reserved.
5 *
6 * Portions of this software were developed by SRI International and the
7 * University of Cambridge Computer Laboratory under DARPA/AFRL contract
8 * FA8750-10-C-0237 ("CTSRD"), as part of the DARPA CRASH research programme.

--- 22 unchanged lines hidden (view full) ---

31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 */
35
36#include "opt_platform.h"
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/riscv/riscv/machdep.c 295972 2016-02-24 16:50:34Z br $");
39__FBSDID("$FreeBSD: head/sys/riscv/riscv/machdep.c 296189 2016-02-29 09:22:39Z wma $");
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/buf.h>
44#include <sys/bus.h>
45#include <sys/cons.h>
46#include <sys/cpu.h>
47#include <sys/exec.h>

--- 686 unchanged lines hidden (view full) ---

734
735void
736initriscv(struct riscv_bootparams *rvbp)
737{
738 struct mem_region mem_regions[FDT_MEM_REGIONS];
739 vm_offset_t lastaddr;
740 int mem_regions_sz;
741 vm_size_t kernlen;
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/buf.h>
44#include <sys/bus.h>
45#include <sys/cons.h>
46#include <sys/cpu.h>
47#include <sys/exec.h>

--- 686 unchanged lines hidden (view full) ---

734
735void
736initriscv(struct riscv_bootparams *rvbp)
737{
738 struct mem_region mem_regions[FDT_MEM_REGIONS];
739 vm_offset_t lastaddr;
740 int mem_regions_sz;
741 vm_size_t kernlen;
742 uint32_t memsize;
742 u_long memsize;
743 caddr_t kmdp;
744 int i;
745
746 /* Set the module data location */
747 lastaddr = fake_preload_metadata(rvbp);
748
749 /* Find the kernel address */
750 kmdp = preload_search_by_type("elf kernel");

--- 55 unchanged lines hidden ---
743 caddr_t kmdp;
744 int i;
745
746 /* Set the module data location */
747 lastaddr = fake_preload_metadata(rvbp);
748
749 /* Find the kernel address */
750 kmdp = preload_search_by_type("elf kernel");

--- 55 unchanged lines hidden ---