Skip to content

Commit

Permalink
fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
esm-tmori committed Feb 4, 2021
1 parent 465d579 commit 7820584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/device/mpu/loader/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static Std_ReturnType Elf_LoadProgram(const Elf32_Ehdr *elf_image, MemoryAddress
}
}
for (i = 0; i < memap->dev_num; i++) {
ptr = mpu_address_set_dev(memap->dev[i].start, memap->dev[i].size * 1024, memap->dev[i].extdev_handle);
ptr = mpu_address_set_dev(memap->dev[i].start, memap->dev[i].size, memap->dev[i].extdev_handle);
if (ptr == NULL) {
printf("Invalid dev file: can not load dev addr=0x%x\n", memap->dev[i].start);
return STD_E_INVALID;
Expand Down
4 changes: 2 additions & 2 deletions src/inc/athrill_exdev_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
#define _ATHRILL_EXDEV_HEADER_H_

#define ATHRILL_EXTERNAL_DEVICE_MAGICNO 0xBEAFDEAD
#define ATHRILL_EXTERNAL_DEVICE_VERSION 0x00000001
#define ATHRILL_EXTERNAL_DEVICE_VERSION 0x00000002
typedef struct {
unsigned int magicno; /* ATHRILL_EXTERNAL_DEVICE_MAGICNO */
unsigned int version; /* ATHRILL_EXTERNAL_DEVICE_VERSION */
int memory_size; /* KB */
int memory_size; /* Bytes */
} AthrillExDeviceHeaderType;


Expand Down

0 comments on commit 7820584

Please sign in to comment.