feature-fixups.c (a0afd4f7c1ff8cb7a9747150500f8ce081fbcfc9) | feature-fixups.c (e51df2c170efaeadce4d416e1825b0830de0a795) |
---|---|
1/* 2 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) 3 * 4 * Modifications for ppc64: 5 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> 6 * 7 * Copyright 2008 Michael Ellerman, IBM Corporation. 8 * --- 150 unchanged lines hidden (view full) --- 159/* This must be after the text it fixes up, vmlinux.lds.S enforces that atm */ 160static struct fixup_entry fixup; 161 162static long calc_offset(struct fixup_entry *entry, unsigned int *p) 163{ 164 return (unsigned long)p - (unsigned long)entry; 165} 166 | 1/* 2 * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) 3 * 4 * Modifications for ppc64: 5 * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> 6 * 7 * Copyright 2008 Michael Ellerman, IBM Corporation. 8 * --- 150 unchanged lines hidden (view full) --- 159/* This must be after the text it fixes up, vmlinux.lds.S enforces that atm */ 160static struct fixup_entry fixup; 161 162static long calc_offset(struct fixup_entry *entry, unsigned int *p) 163{ 164 return (unsigned long)p - (unsigned long)entry; 165} 166 |
167void test_basic_patching(void) | 167static void test_basic_patching(void) |
168{ 169 extern unsigned int ftr_fixup_test1; 170 extern unsigned int end_ftr_fixup_test1; 171 extern unsigned int ftr_fixup_test1_orig; 172 extern unsigned int ftr_fixup_test1_expected; 173 int size = &end_ftr_fixup_test1 - &ftr_fixup_test1; 174 175 fixup.value = fixup.mask = 8; --- 201 unchanged lines hidden --- | 168{ 169 extern unsigned int ftr_fixup_test1; 170 extern unsigned int end_ftr_fixup_test1; 171 extern unsigned int ftr_fixup_test1_orig; 172 extern unsigned int ftr_fixup_test1_expected; 173 int size = &end_ftr_fixup_test1 - &ftr_fixup_test1; 174 175 fixup.value = fixup.mask = 8; --- 201 unchanged lines hidden --- |