···457457 sbus_time_init();458458}459459460460-extern __inline__ unsigned long do_gettimeoffset(void)460460+static inline unsigned long do_gettimeoffset(void)461461{462462 return (*master_l10_counter >> 10) & 0x1fffff;463463}
+1-1
arch/sparc/mm/srmmu.c
···260260{ return __pte((pte_val(pte) & SRMMU_CHG_MASK) | pgprot_val(newprot)); }261261262262/* to find an entry in a top-level page table... */263263-extern inline pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address)263263+static inline pgd_t *srmmu_pgd_offset(struct mm_struct * mm, unsigned long address)264264{ return mm->pgd + (address >> SRMMU_PGDIR_SHIFT); }265265266266/* Find an entry in the second-level page table.. */
+1-11
arch/um/include/registers.h
···1515extern void restore_registers(int pid, union uml_pt_regs *regs);1616extern void init_registers(int pid);1717extern void get_safe_registers(unsigned long * regs);1818+extern void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer);18191920#endif2020-2121-/*2222- * Overrides for Emacs so that we follow Linus's tabbing style.2323- * Emacs will notice this stuff at the end of the file and automatically2424- * adjust the settings for this buffer only. This must remain at the end2525- * of the file.2626- * ---------------------------------------------------------------------------2727- * Local variables:2828- * c-file-style: "linux"2929- * End:3030- */
-4
arch/um/include/sysdep-x86_64/ptrace.h
···218218 case RBP: UPT_RBP(regs) = __upt_val; break; \219219 case ORIG_RAX: UPT_ORIG_RAX(regs) = __upt_val; break; \220220 case CS: UPT_CS(regs) = __upt_val; break; \221221- case DS: UPT_DS(regs) = __upt_val; break; \222222- case ES: UPT_ES(regs) = __upt_val; break; \223223- case FS: UPT_FS(regs) = __upt_val; break; \224224- case GS: UPT_GS(regs) = __upt_val; break; \225221 case EFLAGS: UPT_EFLAGS(regs) = __upt_val; break; \226222 default : \227223 panic("Bad register in UPT_SET : %d\n", reg); \
+1-7
arch/um/kernel/sysrq.c
···62626363 if (esp == NULL) {6464 if (task != current && task != NULL) {6565- /* XXX: Isn't this bogus? I.e. isn't this the6666- * *userspace* stack of this task? If not so, use this6767- * even when task == current (as in i386).6868- */6965 esp = (unsigned long *) KSTK_ESP(task);7070- /* Which one? No actual difference - just coding style.*/7171- //esp = (unsigned long *) PT_REGS_IP(&task->thread.regs);7266 } else {7367 esp = (unsigned long *) &esp;7468 }···7884 }79858086 printk("Call Trace: \n");8181- show_trace(current, esp);8787+ show_trace(task, esp);8288}
+9-10
arch/um/os-Linux/sys-i386/registers.c
···5566#include <errno.h>77#include <string.h>88+#include <setjmp.h>89#include "sysdep/ptrace_user.h"910#include "sysdep/ptrace.h"1011#include "uml-config.h"···127126 memcpy(regs, exec_regs, HOST_FRAME_SIZE * sizeof(unsigned long));128127}129128130130-/*131131- * Overrides for Emacs so that we follow Linus's tabbing style.132132- * Emacs will notice this stuff at the end of the file and automatically133133- * adjust the settings for this buffer only. This must remain at the end134134- * of the file.135135- * ---------------------------------------------------------------------------136136- * Local variables:137137- * c-file-style: "linux"138138- * End:139139- */129129+void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)130130+{131131+ struct __jmp_buf_tag *jmpbuf = buffer;132132+133133+ UPT_SET(uml_regs, EIP, jmpbuf->__jmpbuf[JB_PC]);134134+ UPT_SET(uml_regs, UESP, jmpbuf->__jmpbuf[JB_SP]);135135+ UPT_SET(uml_regs, EBP, jmpbuf->__jmpbuf[JB_BP]);136136+}
+9-10
arch/um/os-Linux/sys-x86_64/registers.c
···5566#include <errno.h>77#include <string.h>88+#include <setjmp.h>89#include "ptrace_user.h"910#include "uml-config.h"1011#include "skas_ptregs.h"···7574 memcpy(regs, exec_regs, HOST_FRAME_SIZE * sizeof(unsigned long));7675}77767878-/*7979- * Overrides for Emacs so that we follow Linus's tabbing style.8080- * Emacs will notice this stuff at the end of the file and automatically8181- * adjust the settings for this buffer only. This must remain at the end8282- * of the file.8383- * ---------------------------------------------------------------------------8484- * Local variables:8585- * c-file-style: "linux"8686- * End:8787- */7777+void get_thread_regs(union uml_pt_regs *uml_regs, void *buffer)7878+{7979+ struct __jmp_buf_tag *jmpbuf = buffer;8080+8181+ UPT_SET(uml_regs, RIP, jmpbuf->__jmpbuf[JB_PC]);8282+ UPT_SET(uml_regs, RSP, jmpbuf->__jmpbuf[JB_RSP]);8383+ UPT_SET(uml_regs, RBP, jmpbuf->__jmpbuf[JB_RBP]);8484+}
···102102 inode instead of a vfs inode as parameter.103103 - Fix the definition of the CHKD ntfs record magic. It had an off by104104 two error causing it to be CHKB instead of CHKD.105105+ - Fix a stupid bug in __ntfs_bitmap_set_bits_in_run() which caused the106106+ count to become negative and hence we had a wild memset() scribbling107107+ all over the system's ram.1051081061092.1.23 - Implement extension of resident files and make writing safe as well as107110 many bug fixes, cleanups, and enhancements...
+3-2
fs/ntfs/bitmap.c
···11/*22 * bitmap.c - NTFS kernel bitmap handling. Part of the Linux-NTFS project.33 *44- * Copyright (c) 2004 Anton Altaparmakov44+ * Copyright (c) 2004-2005 Anton Altaparmakov55 *66 * This program/include file is free software; you can redistribute it and/or77 * modify it under the terms of the GNU General Public License as published···9090 /* If the first byte is partial, modify the appropriate bits in it. */9191 if (bit) {9292 u8 *byte = kaddr + pos;9393- while ((bit & 7) && cnt--) {9393+ while ((bit & 7) && cnt) {9494+ cnt--;9495 if (value)9596 *byte |= 1 << bit++;9697 else
+1-1
fs/ntfs/layout.h
···309309 * Note: The _LE versions will return a CPU endian formatted value!310310 */311311#define MFT_REF_MASK_CPU 0x0000ffffffffffffULL312312-#define MFT_REF_MASK_LE const_cpu_to_le64(0x0000ffffffffffffULL)312312+#define MFT_REF_MASK_LE const_cpu_to_le64(MFT_REF_MASK_CPU)313313314314typedef u64 MFT_REF;315315typedef le64 leMFT_REF;
+2-1
fs/ntfs/mft.c
···5858 * overflowing the unsigned long, but I don't think we would ever get5959 * here if the volume was that big...6060 */6161- index = ni->mft_no << vol->mft_record_size_bits >> PAGE_CACHE_SHIFT;6161+ index = (u64)ni->mft_no << vol->mft_record_size_bits >>6262+ PAGE_CACHE_SHIFT;6263 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_CACHE_MASK;63646465 i_size = i_size_read(mft_vi);
+1-1
fs/ntfs/unistr.c
···11/*22 * unistr.c - NTFS Unicode string handling. Part of the Linux-NTFS project.33 *44- * Copyright (c) 2001-2004 Anton Altaparmakov44+ * Copyright (c) 2001-2005 Anton Altaparmakov55 *66 * This program/include file is free software; you can redistribute it and/or77 * modify it under the terms of the GNU General Public License as published
···1010#include <linux/config.h>1111#include <asm/cpudata.h>12121313-extern __inline__ void __delay(unsigned long loops)1313+static inline void __delay(unsigned long loops)1414{1515 __asm__ __volatile__("cmp %0, 0\n\t"1616 "1: bne 1b\n\t"
+1-1
include/asm-sparc/dma.h
···198198/* Pause until counter runs out or BIT isn't set in the DMA condition199199 * register.200200 */201201-extern __inline__ void sparc_dma_pause(struct sparc_dma_registers *regs,201201+static inline void sparc_dma_pause(struct sparc_dma_registers *regs,202202 unsigned long bit)203203{204204 int ctr = 50000; /* Let's find some bugs ;) */
···4646extern struct kernel_debug *linux_dbvec;47474848/* Use this macro in C-code to enter the debugger. */4949-extern __inline__ void sp_enter_debugger(void)4949+static inline void sp_enter_debugger(void)5050{5151 __asm__ __volatile__("jmpl %0, %%o7\n\t"5252 "nop\n\t" : :
+2-2
include/asm-sparc/mbus.h
···8383 */8484#define TBR_ID_SHIFT 2085858686-extern __inline__ int get_cpuid(void)8686+static inline int get_cpuid(void)8787{8888 register int retval;8989 __asm__ __volatile__("rd %%tbr, %0\n\t"···9393 return (retval & 3);9494}95959696-extern __inline__ int get_modid(void)9696+static inline int get_modid(void)9797{9898 return (get_cpuid() | 0x8);9999}
···15151616#define PCI_IRQ_NONE 0xffffffff17171818-extern inline void pcibios_set_master(struct pci_dev *dev)1818+static inline void pcibios_set_master(struct pci_dev *dev)1919{2020 /* No special bus mastering setup handling */2121}22222323-extern inline void pcibios_penalize_isa_irq(int irq, int active)2323+static inline void pcibios_penalize_isa_irq(int irq, int active)2424{2525 /* We don't do dynamic PCI IRQ allocation */2626}···137137 * only drive the low 24-bits during PCI bus mastering, then138138 * you would pass 0x00ffffff as the mask to this function.139139 */140140-extern inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)140140+static inline int pci_dma_supported(struct pci_dev *hwdev, u64 mask)141141{142142 return 1;143143}
···148148#define __nocache_fix(VADDR) __va(__nocache_pa(VADDR))149149150150/* Accessing the MMU control register. */151151-extern __inline__ unsigned int srmmu_get_mmureg(void)151151+static inline unsigned int srmmu_get_mmureg(void)152152{153153 unsigned int retval;154154 __asm__ __volatile__("lda [%%g0] %1, %0\n\t" :···157157 return retval;158158}159159160160-extern __inline__ void srmmu_set_mmureg(unsigned long regval)160160+static inline void srmmu_set_mmureg(unsigned long regval)161161{162162 __asm__ __volatile__("sta %0, [%%g0] %1\n\t" : :163163 "r" (regval), "i" (ASI_M_MMUREGS) : "memory");164164165165}166166167167-extern __inline__ void srmmu_set_ctable_ptr(unsigned long paddr)167167+static inline void srmmu_set_ctable_ptr(unsigned long paddr)168168{169169 paddr = ((paddr >> 4) & SRMMU_CTX_PMASK);170170 __asm__ __volatile__("sta %0, [%1] %2\n\t" : :···173173 "memory");174174}175175176176-extern __inline__ unsigned long srmmu_get_ctable_ptr(void)176176+static inline unsigned long srmmu_get_ctable_ptr(void)177177{178178 unsigned int retval;179179···184184 return (retval & SRMMU_CTX_PMASK) << 4;185185}186186187187-extern __inline__ void srmmu_set_context(int context)187187+static inline void srmmu_set_context(int context)188188{189189 __asm__ __volatile__("sta %0, [%1] %2\n\t" : :190190 "r" (context), "r" (SRMMU_CTX_REG),191191 "i" (ASI_M_MMUREGS) : "memory");192192}193193194194-extern __inline__ int srmmu_get_context(void)194194+static inline int srmmu_get_context(void)195195{196196 register int retval;197197 __asm__ __volatile__("lda [%1] %2, %0\n\t" :···201201 return retval;202202}203203204204-extern __inline__ unsigned int srmmu_get_fstatus(void)204204+static inline unsigned int srmmu_get_fstatus(void)205205{206206 unsigned int retval;207207···211211 return retval;212212}213213214214-extern __inline__ unsigned int srmmu_get_faddr(void)214214+static inline unsigned int srmmu_get_faddr(void)215215{216216 unsigned int retval;217217···222222}223223224224/* This is guaranteed on all SRMMU's. */225225-extern __inline__ void srmmu_flush_whole_tlb(void)225225+static inline void srmmu_flush_whole_tlb(void)226226{227227 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :228228 "r" (0x400), /* Flush entire TLB!! */···231231}232232233233/* These flush types are not available on all chips... */234234-extern __inline__ void srmmu_flush_tlb_ctx(void)234234+static inline void srmmu_flush_tlb_ctx(void)235235{236236 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :237237 "r" (0x300), /* Flush TLB ctx.. */···239239240240}241241242242-extern __inline__ void srmmu_flush_tlb_region(unsigned long addr)242242+static inline void srmmu_flush_tlb_region(unsigned long addr)243243{244244 addr &= SRMMU_PGDIR_MASK;245245 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···249249}250250251251252252-extern __inline__ void srmmu_flush_tlb_segment(unsigned long addr)252252+static inline void srmmu_flush_tlb_segment(unsigned long addr)253253{254254 addr &= SRMMU_REAL_PMD_MASK;255255 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···258258259259}260260261261-extern __inline__ void srmmu_flush_tlb_page(unsigned long page)261261+static inline void srmmu_flush_tlb_page(unsigned long page)262262{263263 page &= PAGE_MASK;264264 __asm__ __volatile__("sta %%g0, [%0] %1\n\t": :···267267268268}269269270270-extern __inline__ unsigned long srmmu_hwprobe(unsigned long vaddr)270270+static inline unsigned long srmmu_hwprobe(unsigned long vaddr)271271{272272 unsigned long retval;273273···279279 return retval;280280}281281282282-extern __inline__ int282282+static inline int283283srmmu_get_pte (unsigned long addr)284284{285285 register unsigned long entry;
+1-1
include/asm-sparc/processor.h
···7979extern unsigned long thread_saved_pc(struct task_struct *t);80808181/* Do necessary setup to start up a newly executed thread. */8282-extern __inline__ void start_thread(struct pt_regs * regs, unsigned long pc,8282+static inline void start_thread(struct pt_regs * regs, unsigned long pc,8383 unsigned long sp)8484{8585 register unsigned long zero asm("g1");
+3-3
include/asm-sparc/psr.h
···38383939#ifndef __ASSEMBLY__4040/* Get the %psr register. */4141-extern __inline__ unsigned int get_psr(void)4141+static inline unsigned int get_psr(void)4242{4343 unsigned int psr;4444 __asm__ __volatile__(···5353 return psr;5454}55555656-extern __inline__ void put_psr(unsigned int new_psr)5656+static inline void put_psr(unsigned int new_psr)5757{5858 __asm__ __volatile__(5959 "wr %0, 0x0, %%psr\n\t"···72727373extern unsigned int fsr_storage;74747575-extern __inline__ unsigned int get_fsr(void)7575+static inline unsigned int get_fsr(void)7676{7777 unsigned int fsr = 0;7878
+5-5
include/asm-sparc/sbi.h
···65656666#ifndef __ASSEMBLY__67676868-extern __inline__ int acquire_sbi(int devid, int mask)6868+static inline int acquire_sbi(int devid, int mask)6969{7070 __asm__ __volatile__ ("swapa [%2] %3, %0" :7171 "=r" (mask) :···7575 return mask;7676}77777878-extern __inline__ void release_sbi(int devid, int mask)7878+static inline void release_sbi(int devid, int mask)7979{8080 __asm__ __volatile__ ("sta %0, [%1] %2" : :8181 "r" (mask),···8383 "i" (ASI_M_CTL));8484}85858686-extern __inline__ void set_sbi_tid(int devid, int targetid)8686+static inline void set_sbi_tid(int devid, int targetid)8787{8888 __asm__ __volatile__ ("sta %0, [%1] %2" : :8989 "r" (targetid),···9191 "i" (ASI_M_CTL));9292}93939494-extern __inline__ int get_sbi_ctl(int devid, int cfgno)9494+static inline int get_sbi_ctl(int devid, int cfgno)9595{9696 int cfg;9797···102102 return cfg;103103}104104105105-extern __inline__ void set_sbi_ctl(int devid, int cfgno, int cfg)105105+static inline void set_sbi_ctl(int devid, int cfgno, int cfg)106106{107107 __asm__ __volatile__ ("sta %0, [%1] %2" : :108108 "r" (cfg),
+3-3
include/asm-sparc/sbus.h
···2828 * numbers + offsets, and vice versa.2929 */30303131-extern __inline__ unsigned long sbus_devaddr(int slotnum, unsigned long offset)3131+static inline unsigned long sbus_devaddr(int slotnum, unsigned long offset)3232{3333 return (unsigned long) (SUN_SBUS_BVADDR+((slotnum)<<25)+(offset));3434}35353636-extern __inline__ int sbus_dev_slot(unsigned long dev_addr)3636+static inline int sbus_dev_slot(unsigned long dev_addr)3737{3838 return (int) (((dev_addr)-SUN_SBUS_BVADDR)>>25);3939}···80808181extern struct sbus_bus *sbus_root;82828383-extern __inline__ int8383+static inline int8484sbus_is_slave(struct sbus_dev *dev)8585{8686 /* XXX Have to write this for sun4c's */
+13-13
include/asm-sparc/smp.h
···6060#define smp_cross_call(func,arg1,arg2,arg3,arg4,arg5) BTFIXUP_CALL(smp_cross_call)(func,arg1,arg2,arg3,arg4,arg5)6161#define smp_message_pass(target,msg,data,wait) BTFIXUP_CALL(smp_message_pass)(target,msg,data,wait)62626363-extern __inline__ void xc0(smpfunc_t func) { smp_cross_call(func, 0, 0, 0, 0, 0); }6464-extern __inline__ void xc1(smpfunc_t func, unsigned long arg1)6363+static inline void xc0(smpfunc_t func) { smp_cross_call(func, 0, 0, 0, 0, 0); }6464+static inline void xc1(smpfunc_t func, unsigned long arg1)6565{ smp_cross_call(func, arg1, 0, 0, 0, 0); }6666-extern __inline__ void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2)6666+static inline void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2)6767{ smp_cross_call(func, arg1, arg2, 0, 0, 0); }6868-extern __inline__ void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2,6868+static inline void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2,6969 unsigned long arg3)7070{ smp_cross_call(func, arg1, arg2, arg3, 0, 0); }7171-extern __inline__ void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2,7171+static inline void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2,7272 unsigned long arg3, unsigned long arg4)7373{ smp_cross_call(func, arg1, arg2, arg3, arg4, 0); }7474-extern __inline__ void xc5(smpfunc_t func, unsigned long arg1, unsigned long arg2,7474+static inline void xc5(smpfunc_t func, unsigned long arg1, unsigned long arg2,7575 unsigned long arg3, unsigned long arg4, unsigned long arg5)7676{ smp_cross_call(func, arg1, arg2, arg3, arg4, arg5); }77777878-extern __inline__ int smp_call_function(void (*func)(void *info), void *info, int nonatomic, int wait)7878+static inline int smp_call_function(void (*func)(void *info), void *info, int nonatomic, int wait)7979{8080 xc1((smpfunc_t)func, (unsigned long)info);8181 return 0;···8484extern __volatile__ int __cpu_number_map[NR_CPUS];8585extern __volatile__ int __cpu_logical_map[NR_CPUS];86868787-extern __inline__ int cpu_logical_map(int cpu)8787+static inline int cpu_logical_map(int cpu)8888{8989 return __cpu_logical_map[cpu];9090}9191-extern __inline__ int cpu_number_map(int cpu)9191+static inline int cpu_number_map(int cpu)9292{9393 return __cpu_number_map[cpu];9494}95959696-extern __inline__ int hard_smp4m_processor_id(void)9696+static inline int hard_smp4m_processor_id(void)9797{9898 int cpuid;9999···104104 return cpuid;105105}106106107107-extern __inline__ int hard_smp4d_processor_id(void)107107+static inline int hard_smp4d_processor_id(void)108108{109109 int cpuid;110110···114114}115115116116#ifndef MODULE117117-extern __inline__ int hard_smp_processor_id(void)117117+static inline int hard_smp_processor_id(void)118118{119119 int cpuid;120120···136136 return cpuid;137137}138138#else139139-extern __inline__ int hard_smp_processor_id(void)139139+static inline int hard_smp_processor_id(void)140140{141141 int cpuid;142142
+4-4
include/asm-sparc/smpprim.h
···1515 * atomic.1616 */17171818-extern __inline__ __volatile__ char test_and_set(void *addr)1818+static inline __volatile__ char test_and_set(void *addr)1919{2020 char state = 0;2121···2727}28282929/* Initialize a spin-lock. */3030-extern __inline__ __volatile__ smp_initlock(void *spinlock)3030+static inline __volatile__ smp_initlock(void *spinlock)3131{3232 /* Unset the lock. */3333 *((unsigned char *) spinlock) = 0;···3636}37373838/* This routine spins until it acquires the lock at ADDR. */3939-extern __inline__ __volatile__ smp_lock(void *addr)3939+static inline __volatile__ smp_lock(void *addr)4040{4141 while(test_and_set(addr) == 0xff)4242 ;···4646}47474848/* This routine releases the lock at ADDR. */4949-extern __inline__ __volatile__ smp_unlock(void *addr)4949+static inline __volatile__ smp_unlock(void *addr)5050{5151 *((unsigned char *) addr) = 0;5252}
···204204BTFIXUPDEF_CALL(void, ___xchg32, void)205205#endif206206207207-extern __inline__ unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned long val)207207+static inline unsigned long xchg_u32(__volatile__ unsigned long *m, unsigned long val)208208{209209#ifdef CONFIG_SMP210210 __asm__ __volatile__("swap [%2], %0"
+1-1
include/asm-sparc/traps.h
···2222/* We set this to _start in system setup. */2323extern struct tt_entry *sparc_ttable;24242525-extern __inline__ unsigned long get_tbr(void)2525+static inline unsigned long get_tbr(void)2626{2727 unsigned long tbr;2828
+10-13
include/asm-um/processor-generic.h
···1313#include "linux/config.h"1414#include "asm/ptrace.h"1515#include "choose-mode.h"1616+#include "registers.h"16171718struct mm_struct;1819···137136#define current_cpu_data boot_cpu_data138137#endif139138140140-#define KSTK_EIP(tsk) (PT_REGS_IP(&tsk->thread.regs))141141-#define KSTK_ESP(tsk) (PT_REGS_SP(&tsk->thread.regs))139139+140140+#ifdef CONFIG_MODE_SKAS141141+#define KSTK_REG(tsk, reg) \142142+ ({ union uml_pt_regs regs; \143143+ get_thread_regs(®s, tsk->thread.mode.skas.switch_buf); \144144+ UPT_REG(®s, reg); })145145+#else146146+#define KSTK_REG(tsk, reg) (0xbadbabe)147147+#endif142148#define get_wchan(p) (0)143149144150#endif145145-146146-/*147147- * Overrides for Emacs so that we follow Linus's tabbing style.148148- * Emacs will notice this stuff at the end of the file and automatically149149- * adjust the settings for this buffer only. This must remain at the end150150- * of the file.151151- * ---------------------------------------------------------------------------152152- * Local variables:153153- * c-file-style: "linux"154154- * End:155155- */
+4-11
include/asm-um/processor-i386.h
···4343#define ARCH_IS_STACKGROW(address) \4444 (address + 32 >= UPT_SP(¤t->thread.regs.regs))45454646+#define KSTK_EIP(tsk) KSTK_REG(tsk, EIP)4747+#define KSTK_ESP(tsk) KSTK_REG(tsk, UESP)4848+#define KSTK_EBP(tsk) KSTK_REG(tsk, EBP)4949+4650#include "asm/processor-generic.h"47514852#endif4949-5050-/*5151- * Overrides for Emacs so that we follow Linus's tabbing style.5252- * Emacs will notice this stuff at the end of the file and automatically5353- * adjust the settings for this buffer only. This must remain at the end5454- * of the file.5555- * ---------------------------------------------------------------------------5656- * Local variables:5757- * c-file-style: "linux"5858- * End:5959- */
+3-11
include/asm-um/processor-x86_64.h
···3636#define ARCH_IS_STACKGROW(address) \3737 (address + 128 >= UPT_SP(¤t->thread.regs.regs))38383939+#define KSTK_EIP(tsk) KSTK_REG(tsk, RIP)4040+#define KSTK_ESP(tsk) KSTK_REG(tsk, RSP)4141+3942#include "asm/processor-generic.h"40434144#endif4242-4343-/*4444- * Overrides for Emacs so that we follow Linus's tabbing style.4545- * Emacs will notice this stuff at the end of the file and automatically4646- * adjust the settings for this buffer only. This must remain at the end4747- * of the file.4848- * ---------------------------------------------------------------------------4949- * Local variables:5050- * c-file-style: "linux"5151- * End:5252- */