Applied a modified version of holger's regparm patches.