locore.S (285626) | locore.S (285627) |
---|---|
1/*- 2 * Copyright (c) 2012-2014 Andrew Turner 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2012-2014 Andrew Turner 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/arm64/arm64/locore.S 285626 2015-07-16 10:22:57Z zbb $ | 26 * $FreeBSD: head/sys/arm64/arm64/locore.S 285627 2015-07-16 10:46:52Z zbb $ |
27 */ 28 29#include "assym.s" | 27 */ 28 29#include "assym.s" |
30#include "opt_kstack_pages.h" |
|
30#include <sys/syscall.h> 31#include <machine/asm.h> 32#include <machine/armreg.h> 33#include <machine/hypervisor.h> 34#include <machine/param.h> 35#include <machine/pte.h> 36 37#define VIRT_BITS 39 --- 8 unchanged lines hidden (view full) --- 46/* 47 * We assume: 48 * MMU on with an identity map, or off 49 * D-Cache: off 50 * I-Cache: on or off 51 * We are loaded at a 2MiB aligned address 52 */ 53 | 31#include <sys/syscall.h> 32#include <machine/asm.h> 33#include <machine/armreg.h> 34#include <machine/hypervisor.h> 35#include <machine/param.h> 36#include <machine/pte.h> 37 38#define VIRT_BITS 39 --- 8 unchanged lines hidden (view full) --- 47/* 48 * We assume: 49 * MMU on with an identity map, or off 50 * D-Cache: off 51 * I-Cache: on or off 52 * We are loaded at a 2MiB aligned address 53 */ 54 |
54#define INIT_STACK_SIZE (PAGE_SIZE * 4) 55 | |
56 .text 57 .globl _start 58_start: 59 /* Drop to EL1 */ 60 bl drop_to_el1 61 62 /* 63 * Disable the MMU. We may have entered the kernel with it on and --- 541 unchanged lines hidden --- | 55 .text 56 .globl _start 57_start: 58 /* Drop to EL1 */ 59 bl drop_to_el1 60 61 /* 62 * Disable the MMU. We may have entered the kernel with it on and --- 541 unchanged lines hidden --- |