paravirt.c (92243b6fc8fcb16bf401b055f7a0ba79f70a4115) | paravirt.c (fc57a7c68020dcf954428869eafd934c0ab1536f) |
---|---|
1/* Paravirtualization interfaces 2 Copyright (C) 2006 Rusty Russell IBM Corporation 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 --- 27 unchanged lines hidden (view full) --- 36#include <asm/irq.h> 37#include <asm/delay.h> 38#include <asm/fixmap.h> 39#include <asm/apic.h> 40#include <asm/tlbflush.h> 41#include <asm/timer.h> 42#include <asm/special_insns.h> 43 | 1/* Paravirtualization interfaces 2 Copyright (C) 2006 Rusty Russell IBM Corporation 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2 of the License, or 7 (at your option) any later version. 8 --- 27 unchanged lines hidden (view full) --- 36#include <asm/irq.h> 37#include <asm/delay.h> 38#include <asm/fixmap.h> 39#include <asm/apic.h> 40#include <asm/tlbflush.h> 41#include <asm/timer.h> 42#include <asm/special_insns.h> 43 |
44/* nop stub */ 45void _paravirt_nop(void) 46{ 47} | 44/* 45 * nop stub, which must not clobber anything *including the stack* to 46 * avoid confusing the entry prologues. 47 */ 48extern void _paravirt_nop(void); 49asm (".pushsection .entry.text, \"ax\"\n" 50 ".global _paravirt_nop\n" 51 "_paravirt_nop:\n\t" 52 "ret\n\t" 53 ".size _paravirt_nop, . - _paravirt_nop\n\t" 54 ".type _paravirt_nop, @function\n\t" 55 ".popsection"); |
48 49/* identity function, which can be inlined */ 50u32 _paravirt_ident_32(u32 x) 51{ 52 return x; 53} 54 55u64 _paravirt_ident_64(u64 x) --- 434 unchanged lines hidden --- | 56 57/* identity function, which can be inlined */ 58u32 _paravirt_ident_32(u32 x) 59{ 60 return x; 61} 62 63u64 _paravirt_ident_64(u64 x) --- 434 unchanged lines hidden --- |