-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Origin crapola into a machine-specific header file.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Ralf Baechle
committed
Oct 29, 2005
1 parent
a0c3a5b
commit 7e35952
Showing
3 changed files
with
83 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2005 Embedded Alley Solutions, Inc | ||
* Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) | ||
*/ | ||
#ifndef __ASM_MACH_GENERIC_KERNEL_ENTRY_H | ||
#define __ASM_MACH_GENERIC_KERNEL_ENTRY_H | ||
|
||
/* Intentionally empty macro, used in head.S. Override in | ||
* arch/mips/mach-xxx/kernel-entry-init.h when necessary. | ||
*/ | ||
.macro kernel_entry_setup | ||
.endm | ||
|
||
/* | ||
* Do SMP slave processor setup necessary before we can savely execute C code. | ||
*/ | ||
.macro smp_slave_setup | ||
.endm | ||
|
||
|
||
#endif /* __ASM_MACH_GENERIC_KERNEL_ENTRY_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* This file is subject to the terms and conditions of the GNU General Public | ||
* License. See the file "COPYING" in the main directory of this archive | ||
* for more details. | ||
* | ||
* Copyright (C) 2000 Silicon Graphics, Inc. | ||
* Copyright (C) 2005 Ralf Baechle <ralf@linux-mips.org> | ||
*/ | ||
#ifndef __ASM_MACH_IP27_KERNEL_ENTRY_H | ||
#define __ASM_MACH_IP27_KERNEL_ENTRY_H | ||
|
||
#include <asm/sn/addrs.h> | ||
#include <asm/sn/sn0/hubni.h> | ||
#include <asm/sn/klkernvars.h> | ||
|
||
/* | ||
* Returns the local nasid into res. | ||
*/ | ||
.macro GET_NASID_ASM res | ||
dli \res, LOCAL_HUB_ADDR(NI_STATUS_REV_ID) | ||
ld \res, (\res) | ||
and \res, NSRI_NODEID_MASK | ||
dsrl \res, NSRI_NODEID_SHFT | ||
.endm | ||
|
||
/* | ||
* Intentionally empty macro, used in head.S. Override in | ||
* arch/mips/mach-xxx/kernel-entry-init.h when necessary. | ||
*/ | ||
.macro kernel_entry_setup | ||
GET_NASID_ASM t1 | ||
move t2, t1 # text and data are here | ||
MAPPED_KERNEL_SETUP_TLB | ||
.endm | ||
|
||
/* | ||
* Do SMP slave processor setup necessary before we can savely execute C code. | ||
*/ | ||
.macro smp_slave_setup | ||
GET_NASID_ASM t1 | ||
dli t0, KLDIR_OFFSET + (KLI_KERN_VARS * KLDIR_ENT_SIZE) + \ | ||
KLDIR_OFF_POINTER + CAC_BASE | ||
dsll t1, NASID_SHFT | ||
or t0, t0, t1 | ||
ld t0, 0(t0) # t0 points to kern_vars struct | ||
lh t1, KV_RO_NASID_OFFSET(t0) | ||
lh t2, KV_RW_NASID_OFFSET(t0) | ||
MAPPED_KERNEL_SETUP_TLB | ||
ARC64_TWIDDLE_PC | ||
.endm | ||
|
||
#endif /* __ASM_MACH_IP27_KERNEL_ENTRY_H */ |