Skip to content

Commit

Permalink
[image] support uimage
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Jan 13, 2024
1 parent 811fe9e commit 170830a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/image/uimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

#include "image_loader.h"

int uImage_loader(uint8_t *addr, uint32_t *entry) {
#define KERNEL_CODE_OFFSET_IN_UIMAGE 0x40

return -1;
int uImage_loader(uint8_t *addr, uint32_t *entry) {
*entry = addr + KERNEL_CODE_OFFSET_IN_UIMAGE;
return 1;
}

0 comments on commit 170830a

Please sign in to comment.