locore.S (258002) | locore.S (277334) |
---|---|
1/*- 2 * Copyright (C) 2007-2009 Semihalf, Rafal Jaworowski <raj@semihalf.com> 3 * Copyright (C) 2006 Semihalf, Marian Balakowicz <m8@semihalf.com> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 19 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 20 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 22 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 23 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (C) 2007-2009 Semihalf, Rafal Jaworowski <raj@semihalf.com> 3 * Copyright (C) 2006 Semihalf, Marian Balakowicz <m8@semihalf.com> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 9 unchanged lines hidden (view full) --- 18 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 19 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 20 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 22 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 23 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/powerpc/booke/locore.S 258002 2013-11-11 17:37:50Z nwhitehorn $ | 26 * $FreeBSD: head/sys/powerpc/booke/locore.S 277334 2015-01-18 18:32:43Z nwhitehorn $ |
27 */ 28 29#include "assym.s" 30 31#include <machine/asm.h> 32#include <machine/hid.h> 33#include <machine/param.h> 34#include <machine/spr.h> --- 167 unchanged lines hidden (view full) --- 202 203done_mapping: 204 205/* 206 * Setup a temporary stack 207 */ 208 lis %r1, tmpstack@ha 209 addi %r1, %r1, tmpstack@l | 27 */ 28 29#include "assym.s" 30 31#include <machine/asm.h> 32#include <machine/hid.h> 33#include <machine/param.h> 34#include <machine/spr.h> --- 167 unchanged lines hidden (view full) --- 202 203done_mapping: 204 205/* 206 * Setup a temporary stack 207 */ 208 lis %r1, tmpstack@ha 209 addi %r1, %r1, tmpstack@l |
210 addi %r1, %r1, (TMPSTACKSZ - 8) | 210 addi %r1, %r1, (TMPSTACKSZ - 16) |
211 212/* 213 * Initialise exception vector offsets 214 */ 215 bl ivor_setup 216 217/* 218 * Set up arguments and jump to system initialization code --- 143 unchanged lines hidden (view full) --- 362 mr %r3, %r28 363 bl tlb1_inval_entry 364 365/* 366 * Setup a temporary stack 367 */ 368 lis %r1, tmpstack@ha 369 addi %r1, %r1, tmpstack@l | 211 212/* 213 * Initialise exception vector offsets 214 */ 215 bl ivor_setup 216 217/* 218 * Set up arguments and jump to system initialization code --- 143 unchanged lines hidden (view full) --- 362 mr %r3, %r28 363 bl tlb1_inval_entry 364 365/* 366 * Setup a temporary stack 367 */ 368 lis %r1, tmpstack@ha 369 addi %r1, %r1, tmpstack@l |
370 addi %r1, %r1, (TMPSTACKSZ - 8) | 370 addi %r1, %r1, (TMPSTACKSZ - 16) |
371 372/* 373 * Initialise exception vector offsets 374 */ 375 bl ivor_setup 376 377 /* 378 * Assign our pcpu instance --- 373 unchanged lines hidden (view full) --- 752 753/************************************************************************/ 754/* Data section */ 755/************************************************************************/ 756 .data 757 .align 4 758tmpstack: 759 .space TMPSTACKSZ | 371 372/* 373 * Initialise exception vector offsets 374 */ 375 bl ivor_setup 376 377 /* 378 * Assign our pcpu instance --- 373 unchanged lines hidden (view full) --- 752 753/************************************************************************/ 754/* Data section */ 755/************************************************************************/ 756 .data 757 .align 4 758tmpstack: 759 .space TMPSTACKSZ |
760tmpstackbound: 761 .space 10240 /* XXX: this really should not be necessary */ |
|
760 761/* 762 * Compiled KERNBASE locations 763 */ 764 .globl kernbase 765 .set kernbase, KERNBASE 766 | 762 763/* 764 * Compiled KERNBASE locations 765 */ 766 .globl kernbase 767 .set kernbase, KERNBASE 768 |
767/* 768 * Globals 769 */ 770#define INTRCNT_COUNT 256 /* max(HROWPIC_IRQMAX,OPENPIC_IRQMAX) */ 771 772GLOBAL(intrnames) 773 .space INTRCNT_COUNT * (MAXCOMLEN + 1) * 2 774GLOBAL(sintrnames) 775 .long INTRCNT_COUNT * (MAXCOMLEN + 1) * 2 776 777 .align 4 778GLOBAL(intrcnt) 779 .space INTRCNT_COUNT * 4 * 2 780GLOBAL(sintrcnt) 781 .long INTRCNT_COUNT * 4 * 2 782 | |
783#include <powerpc/booke/trap_subr.S> | 769#include <powerpc/booke/trap_subr.S> |