Messages in this thread | | | Date | Tue, 14 Apr 2009 19:51:35 -0700 (PDT) | Subject | Re: [RFC][PATCH 7/8] Convert sparc to use arch_getoffset() infrastructure. | From | David Miller <> |
| |
From: john stultz <johnstul@us.ibm.com> Date: Tue, 14 Apr 2009 18:51:26 -0700
> You acked this patch earlier, but I've just tried building with a > cross-compiler environment I had access to and had problems getting it > to build. > > It seems the pci_do_get/settimeofday() and the bus_do_get/settimeofday() > redirection code is causing some trouble. I'm really not sure how the > BTFIXUPSET_CALL code works, so I don't want to just kill it off. > > Any advice here on how to do this right?
BTFIXUP is basically a kernel boot time patching service, but it only works if we can declare function prototypes in the sparc specific header files.
Since do_gettimeofday() doesn't fall into that requirement, the code in pci_time_init() is patching the first two instructions of do_gettimeofday() such that is makes a call to pci_do_gettimeofday().
| |