OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
mips
/
include
/
asm
/
sn
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:20 AM
rwxr-xr-x
📄
addrs.h
14.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
agent.h
1.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
arch.h
2.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fru.h
1.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gda.h
3.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hub.h
455 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
intr.h
3.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
1.83 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ioc3.h
24.53 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
klconfig.h
30.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kldir.h
7.87 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
klkernvars.h
612 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
launch.h
3.34 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mapped_kernel.h
1.95 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
nmi.h
3.31 KB
01/28/2018 09:20:33 PM
rw-r--r--
📁
sn0
-
11/17/2022 06:42:20 AM
rwxr-xr-x
📄
sn_private.h
585 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
types.h
890 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: mapped_kernel.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ /* * File created by Kanoj Sarcar 06/06/00. * Copyright 2000 Silicon Graphics, Inc. */ #ifndef __ASM_SN_MAPPED_KERNEL_H #define __ASM_SN_MAPPED_KERNEL_H #include <linux/mmzone.h> /* * Note on how mapped kernels work: the text and data section is * compiled at cksseg segment (LOADADDR = 0xc001c000), and the * init/setup/data section gets a 16M virtual address bump in the * ld.script file (so that tlblo0 and tlblo1 maps the sections). * The vmlinux.64 section addresses are put in the xkseg range * using the change-addresses makefile option. Use elfdump -of * on IRIX to see where the sections go. The Origin loader loads * the two sections contiguously in physical memory. The loader * sets the entry point into kernel_entry using a xkphys address, * but instead of using 0xa800000001160000, it uses the address * 0xa800000000160000, which is where it physically loaded that * code. So no jumps can be done before we have switched to using * cksseg addresses. */ #include <asm/addrspace.h> #define REP_BASE CAC_BASE #ifdef CONFIG_MAPPED_KERNEL #define MAPPED_ADDR_RO_TO_PHYS(x) (x - REP_BASE) #define MAPPED_ADDR_RW_TO_PHYS(x) (x - REP_BASE - 16777216) #define MAPPED_KERN_RO_PHYSBASE(n) (hub_data(n)->kern_vars.kv_ro_baseaddr) #define MAPPED_KERN_RW_PHYSBASE(n) (hub_data(n)->kern_vars.kv_rw_baseaddr) #define MAPPED_KERN_RO_TO_PHYS(x) \ ((unsigned long)MAPPED_ADDR_RO_TO_PHYS(x) | \ MAPPED_KERN_RO_PHYSBASE(get_compact_nodeid())) #define MAPPED_KERN_RW_TO_PHYS(x) \ ((unsigned long)MAPPED_ADDR_RW_TO_PHYS(x) | \ MAPPED_KERN_RW_PHYSBASE(get_compact_nodeid())) #else /* CONFIG_MAPPED_KERNEL */ #define MAPPED_KERN_RO_TO_PHYS(x) (x - REP_BASE) #define MAPPED_KERN_RW_TO_PHYS(x) (x - REP_BASE) #endif /* CONFIG_MAPPED_KERNEL */ #define MAPPED_KERN_RO_TO_K0(x) PHYS_TO_K0(MAPPED_KERN_RO_TO_PHYS(x)) #define MAPPED_KERN_RW_TO_K0(x) PHYS_TO_K0(MAPPED_KERN_RW_TO_PHYS(x)) #endif /* __ASM_SN_MAPPED_KERNEL_H */