locore.S (187149) | locore.S (191375) |
---|---|
1/*- 2 * Copyright (C) 2007-2008 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-2008 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 187149 2009-01-13 15:41:58Z raj $ | 26 * $FreeBSD: head/sys/powerpc/booke/locore.S 191375 2009-04-22 13:11:38Z raj $ |
27 */ 28 29#include "assym.s" 30 31#include <machine/asm.h> | 27 */ 28 29#include "assym.s" 30 31#include <machine/asm.h> |
32#include <machine/hid.h> |
|
32#include <machine/param.h> 33#include <machine/spr.h> 34#include <machine/psl.h> 35#include <machine/pte.h> 36#include <machine/trap.h> 37#include <machine/vmparam.h> 38#include <machine/tlb.h> 39#include <machine/bootinfo.h> --- 58 unchanged lines hidden (view full) --- 98 99/* 100 * Initial cleanup 101 */ 102 li %r3, PSL_DE /* Keep debug exceptions for CodeWarrior. */ 103 mtmsr %r3 104 isync 105 | 33#include <machine/param.h> 34#include <machine/spr.h> 35#include <machine/psl.h> 36#include <machine/pte.h> 37#include <machine/trap.h> 38#include <machine/vmparam.h> 39#include <machine/tlb.h> 40#include <machine/bootinfo.h> --- 58 unchanged lines hidden (view full) --- 99 100/* 101 * Initial cleanup 102 */ 103 li %r3, PSL_DE /* Keep debug exceptions for CodeWarrior. */ 104 mtmsr %r3 105 isync 106 |
107 lis %r3, HID0_E500_DEFAULT_SET@h 108 ori %r3, %r3, HID0_E500_DEFAULT_SET@l 109 mtspr SPR_HID0, %r3 110 isync 111 lis %r3, HID1_E500_DEFAULT_SET@h 112 ori %r3, %r3, HID1_E500_DEFAULT_SET@l 113 mtspr SPR_HID1, %r3 114 isync 115 |
|
106 /* Invalidate all entries in TLB0 */ 107 li %r3, 0 108 bl tlb_inval_all 109 110/* 111 * Locate the TLB1 entry that maps this code 112 */ 113 bl 1f --- 497 unchanged lines hidden --- | 116 /* Invalidate all entries in TLB0 */ 117 li %r3, 0 118 bl tlb_inval_all 119 120/* 121 * Locate the TLB1 entry that maps this code 122 */ 123 bl 1f --- 497 unchanged lines hidden --- |