1 static void *walkcbfs(char *target)
7 "1:\n\t" : "=a" (entry) : "S" (target) : "ebx", "ecx", "edi", "esp");
11 /* just enough to support findstage. copied because the original version doesn't easily pass through romcc */
12 struct cbfs_stage_restricted {
13 unsigned long compression;
14 unsigned long entry; // this is really 64bit, but properly endianized
17 static inline unsigned long findstage(char* target)
19 return ((struct cbfs_stage_restricted *)walkcbfs(target))->entry;
22 static inline void call(unsigned long addr, unsigned long bist)
24 asm volatile ("jmp *%0\n\t" : : "r" (addr), "a" (bist));