Changeset 226 for soft/giet_vm/xml
- Timestamp:
- Dec 14, 2012, 10:10:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/xml/xml_parser.c
r222 r226 129 129 unsigned int kernel_init_base = 0x80090000; /* system init entry */ 130 130 131 unsigned int boot_code_base = 0xBFC00000; 131 unsigned int boot_code_base = 0xBFC00000; /* boot code */ 132 132 unsigned int boot_stack_base = 0xBFC08000; /* boot temporary stack */ 133 133 unsigned int boot_mapping_base = 0xBFC0C000; /* mapping_info blob */ … … 1967 1967 1968 1968 //open file 1969 int fdout = open( file_path, (O_CREAT | O_RDWR ), (S_IWUSR | S_IRUSR) );1969 int fdout = open( file_path, (O_CREAT | O_RDWR | O_TRUNC), (S_IWUSR | S_IRUSR) ); 1970 1970 if ( fdout < 0) 1971 1971 { 1972 1972 perror("open"); 1973 exit(1);1974 }1975 1976 //reinitialise the file1977 if( ftruncate(fdout, 0) )1978 {1979 perror("truncate");1980 1973 exit(1); 1981 1974 }
Note: See TracChangeset
for help on using the changeset viewer.