# HG changeset patch # User asl # Date 1091631580 0 # Node ID 9a9ce858560e20decc487900e55e0a3fddea7e31 # Parent 4a515225541bf1aafb286a8832ba67b5340c3b23 * include/hal_io.h: Add cyg_hal_sys_mkdir() system call * include/hal_intr.h: Add HAL_PLATFORM_RESET() macro diff --git a/packages/hal/synth/arch/current/ChangeLog b/packages/hal/synth/arch/current/ChangeLog --- a/packages/hal/synth/arch/current/ChangeLog +++ b/packages/hal/synth/arch/current/ChangeLog @@ -1,3 +1,8 @@ +2004-08-04 Alexander Neundorf + + * include/hal_io.h: Add cyg_hal_sys_mkdir() system call + * include/hal_intr.h: Add HAL_PLATFORM_RESET() macro + 2004-06-21 Alexander Neundorf * include/hal_io.h: diff --git a/packages/hal/synth/arch/current/include/hal_intr.h b/packages/hal/synth/arch/current/include/hal_intr.h --- a/packages/hal/synth/arch/current/include/hal_intr.h +++ b/packages/hal/synth/arch/current/include/hal_intr.h @@ -240,13 +240,19 @@ externC cyg_uint32 hal_clock_read(v CYG_MACRO_END // ---------------------------------------------------------------------------- +// Resetting the Synth target is not possible, but existing the process is. +externC void cyg_hal_sys_exit(int); +#define HAL_PLATFORM_RESET() \ + CYG_MACRO_START \ + cyg_hal_sys_exit(0) \ + CYG_MACRO_END + +// ---------------------------------------------------------------------------- // Test case exit support. -externC void cyg_hal_sys_exit(int); #define CYGHWR_TEST_PROGRAM_EXIT() \ CYG_MACRO_START \ cyg_hal_sys_exit(0); \ CYG_MACRO_END - //--------------------------------------------------------------------------- #endif // ifndef CYGONCE_HAL_HAL_INTR_H // End of hal_intr.h diff --git a/packages/hal/synth/arch/current/include/hal_io.h b/packages/hal/synth/arch/current/include/hal_io.h --- a/packages/hal/synth/arch/current/include/hal_io.h +++ b/packages/hal/synth/arch/current/include/hal_io.h @@ -492,6 +492,7 @@ externC int cyg_hal_sys_readdir(unsigned unsigned int count); externC int cyg_hal_sys_lstat(const char* name, struct cyg_hal_sys_stat *buf); externC int cyg_hal_sys_fstat(int fd, struct cyg_hal_sys_stat *buf); +externC int cyg_hal_sys_mkdir(const char* path, int mode); // Access to environmental data extern int cyg_hal_sys_argc;