Skip to content

Commit d26c39c

Browse files
committed
Update sys_write and sys_preload_store documentation to match implementation
1 parent 7a0ba75 commit d26c39c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libsyscall/sys_wrapper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ int sys_dealloc(void)
4747
// Write data in `buf` to the app's flash area at byte `offset` within
4848
// the area.
4949
//
50-
// At most 4096 bytes can be written at once and `offset` must be a
51-
// multiple of 4096 bytes.
50+
// Up to storage area size bytes can be written at once and `offset` must be a
51+
// multiple of 256 bytes.
5252
//
5353
// Returns 0 on success.
5454
int sys_write(uint32_t offset, void *buf, size_t len)
@@ -97,8 +97,8 @@ int sys_preload_delete(void)
9797
// `sys_preload_store` many times as you receive the binary from the
9898
// client. Returns 0 on success.
9999
//
100-
// At most 4096 bytes can be written at once and `offset` must be a
101-
// multiple of 4096 bytes.
100+
// Up to preloaded app area size bytes can be written at once and `offset` must
101+
// be a multiple of 256 bytes.
102102
//
103103
// Only available for the verified management app.
104104
//

0 commit comments

Comments
 (0)