as-layout.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) | as-layout.h (9f0b4807a44ff81cf59421c8a86641efec586610) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 4 */ 5 6#ifndef __START_H__ 7#define __START_H__ 8 --- 6 unchanged lines hidden (view full) --- 15 * rather than "UL" to the end. 16 */ 17 18/* Some constant macros are used in both assembler and 19 * C code. Therefore we cannot annotate them always with 20 * 'UL' and other type specifiers unilaterally. We 21 * use the following macros to deal with this. 22 */ | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 4 */ 5 6#ifndef __START_H__ 7#define __START_H__ 8 --- 6 unchanged lines hidden (view full) --- 15 * rather than "UL" to the end. 16 */ 17 18/* Some constant macros are used in both assembler and 19 * C code. Therefore we cannot annotate them always with 20 * 'UL' and other type specifiers unilaterally. We 21 * use the following macros to deal with this. 22 */ |
23#define STUB_START 0x100000UL 24#define STUB_CODE STUB_START 25#define STUB_DATA (STUB_CODE + UM_KERN_PAGE_SIZE) 26#define STUB_END (STUB_DATA + UM_KERN_PAGE_SIZE) |
|
23 | 27 |
24#ifdef __ASSEMBLY__ 25#define _UML_AC(X, Y) (Y) 26#else 27#define __UML_AC(X, Y) (X(Y)) 28#define _UML_AC(X, Y) __UML_AC(X, Y) 29#endif 30 31#define STUB_START _UML_AC(, 0x100000) 32#define STUB_CODE _UML_AC((unsigned long), STUB_START) 33#define STUB_DATA _UML_AC((unsigned long), STUB_CODE + UM_KERN_PAGE_SIZE) 34#define STUB_END _UML_AC((unsigned long), STUB_DATA + UM_KERN_PAGE_SIZE) 35 | |
36#ifndef __ASSEMBLY__ 37 38#include <sysdep/ptrace.h> 39 40struct cpu_task { 41 int pid; 42 void *task; 43}; --- 23 unchanged lines hidden --- | 28#ifndef __ASSEMBLY__ 29 30#include <sysdep/ptrace.h> 31 32struct cpu_task { 33 int pid; 34 void *task; 35}; --- 23 unchanged lines hidden --- |