Changeset View
Changeset View
Standalone View
Standalone View
stand/uboot/lib/glue.h
Show All 34 Lines | |||||
#include "api_public.h" | #include "api_public.h" | ||||
/* | /* | ||||
* Mask used to align the start address for API signature search to 1MiB | * Mask used to align the start address for API signature search to 1MiB | ||||
*/ | */ | ||||
#define API_SIG_SEARCH_MASK ~0x000fffff | #define API_SIG_SEARCH_MASK ~0x000fffff | ||||
#ifdef __mips__ | |||||
/* | /* | ||||
* On MIPS, U-Boot passes us a hint address, which is very close to the end of | |||||
* RAM (less than 1MiB), so searching for the API signature within more than | |||||
* that leads to exception. | |||||
*/ | |||||
#define API_SIG_SEARCH_LEN 0x00100000 | |||||
#else | |||||
/* | |||||
* Search for the API signature within 3MiB of the 1MiB-aligned address that | * Search for the API signature within 3MiB of the 1MiB-aligned address that | ||||
* U-Boot has hinted us. | * U-Boot has hinted us. | ||||
*/ | */ | ||||
#define API_SIG_SEARCH_LEN 0x00300000 | #define API_SIG_SEARCH_LEN 0x00300000 | ||||
#endif | |||||
int syscall(int, int *, ...); | int syscall(int, int *, ...); | ||||
extern void *syscall_ptr; | extern void *syscall_ptr; | ||||
int api_parse_cmdline_sig(int argc, char **argv, struct api_signature **sig); | int api_parse_cmdline_sig(int argc, char **argv, struct api_signature **sig); | ||||
int api_search_sig(struct api_signature **sig); | int api_search_sig(struct api_signature **sig); | ||||
#define UB_MAX_MR 16 /* max mem regions number */ | #define UB_MAX_MR 16 /* max mem regions number */ | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |