diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-16 11:14:21 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-16 11:14:21 -0500 |
commit | 14ea1b3635b4af8d9e283e3671f7ee872d50b859 (patch) | |
tree | b8d1c05256b6f160a598656e797071081bd1f61e /api/api.c | |
parent | b0db69b4e1e1bf1109bd9d4a5185cbd4058f4a8b (diff) | |
parent | 750c543ca74a80da4b67882deb967c80fe790c3f (diff) |
Merge branch '2021-01-15-assorted-improvements'
- Add MBR partition layout writing supporting, clean up code.
- A large number of assorted console/iomux cleanups
- A large number of board_r related cleanups.
- Log enhancements
Diffstat (limited to 'api/api.c')
-rw-r--r-- | api/api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/api/api.c b/api/api.c index 493b77f8094..89003c161c2 100644 --- a/api/api.c +++ b/api/api.c @@ -642,7 +642,7 @@ int syscall(int call, int *retval, ...) return 1; } -void api_init(void) +int api_init(void) { struct api_signature *sig; @@ -679,7 +679,7 @@ void api_init(void) sig = malloc(sizeof(struct api_signature)); if (sig == NULL) { printf("API: could not allocate memory for the signature!\n"); - return; + return -ENOMEM; } env_set_hex("api_address", (unsigned long)sig); @@ -691,6 +691,8 @@ void api_init(void) sig->checksum = crc32(0, (unsigned char *)sig, sizeof(struct api_signature)); debugf("syscall entry: 0x%lX\n", (unsigned long)sig->syscall); + + return 0; } void platform_set_mr(struct sys_info *si, unsigned long start, unsigned long size, |