Add bsp_setbenv system call.

This commit is contained in:
Eric Norum
2006-08-01 18:30:35 +00:00
parent 6d0535626a
commit 167818a557
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2006-08-01 Eric Norum <norume@aps.anl.gov>
* startup/bspstart.c: Add bsp_setbenv system call.
2006-05-15 Eric Norum <norume@aps.anl.gov>
* startup/bspstart.c: Add checks for FPGA interrupt request overflow.

View File

@@ -411,12 +411,13 @@ type bsp_##name(d1type d1, d2type d2, d3type d3) \
#define SysCode_program 5 /* program flash memory */
#define SysCode_gethwaddr 12 /* get hardware address */
#define SysCode_getbenv 14 /* get bootloader environment variable */
#define SysCode_setbenv 15 /* get bootloader environment variable */
#define SysCode_setbenv 15 /* set bootloader environment variable */
#define SysCode_flash_erase_range 19 /* erase a section of flash */
#define SysCode_flash_write_range 20 /* write a section of flash */
syscall_1(int, reset, int, flags)
syscall_1(unsigned const char *, gethwaddr, int, a)
syscall_1(const char *, getbenv, const char *, a)
syscall_1(int, setbenv, const char *, a)
syscall_2(int, program, bsp_mnode_t *, chain, int, flags)
syscall_3(int, flash_erase_range, volatile unsigned short *, flashptr, int, start, int, end);
syscall_3(int, flash_write_range, volatile unsigned short *, flashptr, bsp_mnode_t *, chain, int, offset);