Changeset c477c80 in mainline
- Timestamp:
- 2019-01-03T22:23:00Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06412ba
- Parents:
- 7acd787
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/methods.h
r7acd787 rc477c80 152 152 * 153 153 * - ARG1 - dst as_area lower bound 154 * - ARG2 - dst as_area base ad ress pointer154 * - ARG2 - dst as_area base address pointer 155 155 * (filled automatically by the kernel) 156 156 */ -
kernel/arch/arm32/src/mm/tlb.c
r7acd787 rc477c80 76 76 /** Invalidate single entry in TLB 77 77 * 78 * @param page Virtual ad ress of the page78 * @param page Virtual address of the page 79 79 */ 80 80 static inline void invalidate_page(uintptr_t page) -
kernel/arch/ppc32/include/arch/istate_struct.h
r7acd787 rc477c80 86 86 /* imitation of frame pointer linkage */ 87 87 uint32_t sp_frame; 88 /* imitation of return ad ress linkage */88 /* imitation of return address linkage */ 89 89 uint32_t lr_frame; 90 90 uint32_t r0; -
kernel/generic/src/mm/as.c
r7acd787 rc477c80 194 194 } 195 195 196 /** Destroy ad ress space.196 /** Destroy address space. 197 197 * 198 198 * When there are no tasks referencing this address space (i.e. its refcount is … … 1347 1347 } 1348 1348 1349 /** Change ad ress space area flags.1349 /** Change address space area flags. 1350 1350 * 1351 1351 * The idea is to have the same data, but with a different access mode. … … 2150 2150 } 2151 2151 2152 /** Get list of ad ress space areas.2152 /** Get list of address space areas. 2153 2153 * 2154 2154 * @param as Address space. -
kernel/generic/src/proc/thread.c
r7acd787 rc477c80 180 180 * covered by the kernel identity mapping, which guarantees not to 181 181 * nest TLB-misses infinitely (either via some hardware mechanism or 182 * by the construc iton of the assembly-language part of the TLB-miss182 * by the construction of the assembly-language part of the TLB-miss 183 183 * handler). 184 184 * 185 185 * This restriction can be lifted once each architecture provides 186 * a similar guarantee, for example by locking the kernel stack186 * a similar guarantee, for example, by locking the kernel stack 187 187 * in the TLB whenever it is allocated from the high-memory and the 188 188 * thread is being scheduled to run. -
uspace/app/wavplay/drec.c
r7acd787 rc477c80 88 88 * Writes recorded data. 89 89 * 90 * @param icall Poi tner to IPC call structure.91 * @param arg Argument. Poi tner to recording helper structure.90 * @param icall Pointer to IPC call structure. 91 * @param arg Argument. Pointer to recording helper structure. 92 92 * 93 93 */ -
uspace/drv/block/ahci/ahci.c
r7acd787 rc477c80 816 816 * 817 817 * @param sata SATA device structure. 818 * @param phys Physical addres of buffer with sector data.818 * @param phys Physical address of buffer with sector data. 819 819 * @param blocknum Block number to write. 820 820 * -
uspace/drv/bus/usb/ehci/hw_struct/iso_transfer_descriptor.h
r7acd787 rc477c80 56 56 #define ITD_TRANSACTION_STATUS_BABBLE_FLAG (1 << 29) 57 57 #define ITD_TRANSACTION_STATUS_TRANS_ERROR_FLAG (1 << 28) 58 #define ITD_TRANSACTION_LENG HT_MASK 0xfff59 #define ITD_TRANSACTION_LENG HT_SHIFT 1658 #define ITD_TRANSACTION_LENGTH_MASK 0xfff 59 #define ITD_TRANSACTION_LENGTH_SHIFT 16 60 60 #define ITD_TRANSACTION_IOC_FLAG (1 << 15) 61 61 #define ITD_TRANSACTION_PG_MASK 0x3 -
uspace/drv/nic/rtl8139/driver.h
r7acd787 rc477c80 107 107 void *tx_buff_virt; 108 108 109 /** Virtual ad resses of the Tx buffers */109 /** Virtual addresses of the Tx buffers */ 110 110 void *tx_buff[TX_BUFF_COUNT]; 111 111 -
uspace/lib/c/generic/as.c
r7acd787 rc477c80 126 126 * 127 127 * @param virt Virtual address to find mapping for. 128 * @param[out] phys Physical ad ress.128 * @param[out] phys Physical address. 129 129 * 130 130 * @return EOK on no error. -
uspace/lib/c/generic/loc.c
r7acd787 rc477c80 239 239 } 240 240 241 /** Register new driver with loc. */241 /** Register new server with loc. */ 242 242 errno_t loc_server_register(const char *name) 243 243 { -
uspace/lib/c/generic/vol.c
r7acd787 rc477c80 220 220 * @param vol Volume service 221 221 * @param sid Service ID of the partition 222 * @param vinfo Place to s ore partition information222 * @param vinfo Place to store partition information 223 223 * @return EOK on success or an error code 224 224 */ … … 578 578 * @param vol Volume service 579 579 * @param vid Volume ID 580 * @param vinfo Place to s ore volume configuration information580 * @param vinfo Place to store volume configuration information 581 581 * @return EOK on success or an error code 582 582 */ -
uspace/lib/nettl/include/nettl/amap.h
r7acd787 rc477c80 82 82 /** Local links */ 83 83 list_t llink; /* of amap_llink_t */ 84 /** Nothing specified (listen on all local ad resses) */84 /** Nothing specified (listen on all local addresses) */ 85 85 portrng_t *unspec; 86 86 } amap_t; -
uspace/lib/nic/src/nic_addr_db.c
r7acd787 rc477c80 163 163 * @return EOK If the address was inserted 164 164 * @return ENOMEM If there was not enough memory 165 * @return EEXIST If this ad ress already is in the db165 * @return EEXIST If this address already is in the db 166 166 */ 167 167 errno_t nic_addr_db_insert(nic_addr_db_t *db, const uint8_t *addr) -
uspace/lib/nic/src/nic_driver.c
r7acd787 rc477c80 418 418 } 419 419 420 /** Inform the NICF about device's MAC ad ress.420 /** Inform the NICF about device's MAC address. 421 421 * 422 422 * @return EOK On success -
uspace/srv/fs/udf/udf.h
r7acd787 rc477c80 70 70 uint32_t access_type; 71 71 uint32_t start; 72 uint32_t leng ht;72 uint32_t length; 73 73 } udf_partition_t; 74 74 … … 91 91 udf_unallocated_space_descriptor_t *uasd; 92 92 uint64_t uaspace_start; 93 uint64_t uaspace_leng ht;93 uint64_t uaspace_length; 94 94 uint8_t space_type; 95 95 } udf_instance_t; -
uspace/srv/fs/udf/udf_file.c
r7acd787 rc477c80 114 114 if ((node->index >= node->instance->partitions[i].start) && 115 115 (node->index < node->instance->partitions[i].start + 116 node->instance->partitions[i].leng ht)) {116 node->instance->partitions[i].length)) { 117 117 if (node->instance->partitions[i].start >= min_start) { 118 118 min_start = node->instance->partitions[i].start; … … 258 258 (udf_file_entry_descriptor_t *) block->data; 259 259 uint16_t icb_flag = FLE16(file->icbtag.flags) & UDF_ICBFLAG_MASK; 260 node->data_size = FLE64(file->info_leng ht);260 node->data_size = FLE64(file->info_length); 261 261 node->type = (file->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE; 262 262 263 263 rc = udf_read_allocation_sequence(node, (uint8_t *) file, icb_flag, 264 FLE32(file->ea_leng ht) + UDF_FE_OFFSET, FLE32(file->ad_lenght));264 FLE32(file->ea_length) + UDF_FE_OFFSET, FLE32(file->ad_length)); 265 265 block_put(block); 266 266 return rc; … … 272 272 (udf_extended_file_entry_descriptor_t *) block->data; 273 273 icb_flag = FLE16(efile->icbtag.flags) & UDF_ICBFLAG_MASK; 274 node->data_size = FLE64(efile->info_leng ht);274 node->data_size = FLE64(efile->info_length); 275 275 node->type = (efile->icbtag.file_type == UDF_ICBTYPE_DIR) ? NODE_DIR : NODE_FILE; 276 276 277 277 rc = udf_read_allocation_sequence(node, (uint8_t *) efile, icb_flag, 278 FLE32(efile->ea_leng ht) + UDF_EFE_OFFSET, FLE32(efile->ad_lenght));278 FLE32(efile->ea_length) + UDF_EFE_OFFSET, FLE32(efile->ad_length)); 279 279 block_put(block); 280 280 return rc; … … 338 338 339 339 /* According to ECMA 167 4/14.4.9 */ 340 size_t padding = 4 * (((*fid)->leng ht_file_id +341 FLE16((*fid)->leng ht_iu) + 38 + 3) / 4) -342 ((*fid)->leng ht_file_id + FLE16((*fid)->lenght_iu) + 38);343 size_t size_fid = (*fid)->leng ht_file_id +344 FLE16((*fid)->leng ht_iu) + padding + 38;340 size_t padding = 4 * (((*fid)->length_file_id + 341 FLE16((*fid)->length_iu) + 38 + 3) / 4) - 342 ((*fid)->length_file_id + FLE16((*fid)->length_iu) + 38); 343 size_t size_fid = (*fid)->length_file_id + 344 FLE16((*fid)->length_iu) + padding + 38; 345 345 346 346 fid_sum += size_fid; 347 347 348 348 /* aAcording to ECMA 167 4/8.6 */ 349 if (((*fid)->leng ht_file_id != 0) &&349 if (((*fid)->length_file_id != 0) && 350 350 (((*fid)->file_characteristics & 4) == 0)) { 351 351 n++; … … 516 516 517 517 /* According to ECMA 167 4/14.4.9 */ 518 size_t padding = 4 * (((*fid)->leng ht_file_id +519 FLE16((*fid)->leng ht_iu) + 38 + 3) / 4) -520 ((*fid)->leng ht_file_id + FLE16((*fid)->lenght_iu) + 38);521 size_t size_fid = (*fid)->leng ht_file_id +522 FLE16((*fid)->leng ht_iu) + padding + 38;518 size_t padding = 4 * (((*fid)->length_file_id + 519 FLE16((*fid)->length_iu) + 38 + 3) / 4) - 520 ((*fid)->length_file_id + FLE16((*fid)->length_iu) + 38); 521 size_t size_fid = (*fid)->length_file_id + 522 FLE16((*fid)->length_iu) + padding + 38; 523 523 if (buf_flag) 524 524 fid_sum += size_fid - *len; … … 527 527 528 528 /* According to ECMA 167 4/8.6 */ 529 if (((*fid)->leng ht_file_id != 0) &&529 if (((*fid)->length_file_id != 0) && 530 530 (((*fid)->file_characteristics & 4) == 0)) { 531 531 (*n)++; -
uspace/srv/fs/udf/udf_file.h
r7acd787 rc477c80 99 99 uint16_t file_version_number; 100 100 uint8_t file_characteristics; 101 uint8_t leng ht_file_id;101 uint8_t length_file_id; 102 102 udf_long_ad_t icb; 103 uint16_t leng ht_iu;103 uint16_t length_iu; 104 104 uint8_t implementation_use[0]; 105 105 udf_dstring file_id[0]; … … 128 128 uint8_t record_format; 129 129 uint8_t record_display_attributes; 130 uint32_t record_leng ht;131 uint64_t info_leng ht;130 uint32_t record_length; 131 uint64_t info_length; 132 132 uint64_t lblocks_recorded; 133 133 udf_timestamp_t access_data_and_time; … … 138 138 udf_regid_t implementation_id; 139 139 uint64_t unique_id; 140 uint32_t ea_leng ht;141 uint32_t ad_leng ht;140 uint32_t ea_length; 141 uint32_t ad_length; 142 142 uint8_t extended_attributes [0]; 143 143 uint8_t allocation_descriptors[0]; … … 154 154 uint8_t record_format; 155 155 uint8_t record_display_attributes; 156 uint32_t record_leng ht;157 uint64_t info_leng ht;156 uint32_t record_length; 157 uint64_t info_length; 158 158 uint64_t object_size; 159 159 uint64_t lblocks_recorded; … … 166 166 udf_regid_t implementation_id; 167 167 uint64_t unique_id; 168 uint32_t ea_leng ht;169 uint32_t ad_leng ht;168 uint32_t ea_length; 169 uint32_t ad_length; 170 170 uint8_t extended_attributes [0]; 171 171 uint8_t allocation_descriptors[0]; … … 182 182 udf_descriptor_tag_t tag; 183 183 udf_icbtag_t icbtag; 184 uint32_t ad_leng ht;184 uint32_t ad_length; 185 185 uint8_t allocation_descriptors[0]; 186 186 } __attribute__((packed)) udf_unallocated_space_entry_descriptor_t; -
uspace/srv/fs/udf/udf_ops.c
r7acd787 rc477c80 128 128 129 129 udf_to_unix_name(name, MAX_FILE_NAME_LEN, 130 (char *) fid->implementation_use + FLE16(fid->leng ht_iu),131 fid->leng ht_file_id, &UDF_NODE(pfn)->instance->charset);130 (char *) fid->implementation_use + FLE16(fid->length_iu), 131 fid->length_file_id, &UDF_NODE(pfn)->instance->charset); 132 132 133 133 if (str_casecmp(name, component) == 0) { … … 502 502 503 503 udf_to_unix_name(name, MAX_FILE_NAME_LEN, 504 (char *) fid->implementation_use + FLE16(fid->leng ht_iu),505 fid->leng ht_file_id, &node->instance->charset);504 (char *) fid->implementation_use + FLE16(fid->length_iu), 505 fid->length_file_id, &node->instance->charset); 506 506 507 507 async_data_read_finalize(&call, name, str_size(name) + 1); -
uspace/srv/fs/udf/udf_volume.c
r7acd787 rc477c80 386 386 udf_file_entry_descriptor_t *fed = 387 387 (udf_file_entry_descriptor_t *) block->data; 388 uint32_t start_alloc = FLE32(fed->ea_leng ht) + UDF_FE_OFFSET;388 uint32_t start_alloc = FLE32(fed->ea_length) + UDF_FE_OFFSET; 389 389 udf_short_ad_t *short_d = 390 390 (udf_short_ad_t *) ((uint8_t *) fed + start_alloc); 391 391 instance->partitions[id].start = FLE32(short_d->position); 392 instance->partitions[id].leng ht= FLE32(short_d->length);392 instance->partitions[id].length = FLE32(short_d->length); 393 393 break; 394 394 … … 398 398 udf_extended_file_entry_descriptor_t *efed = 399 399 (udf_extended_file_entry_descriptor_t *) block->data; 400 start_alloc = FLE32(efed->ea_leng ht) + UDF_EFE_OFFSET;400 start_alloc = FLE32(efed->ea_length) + UDF_EFE_OFFSET; 401 401 short_d = (udf_short_ad_t *) ((uint8_t *) efed + start_alloc); 402 402 instance->partitions[id].start = FLE32(short_d->position); 403 instance->partitions[id].leng ht= FLE32(short_d->length);403 instance->partitions[id].length = FLE32(short_d->length); 404 404 break; 405 405 } … … 503 503 instance->partitions[j].access_type = 504 504 FLE32(pd[pd_num].access_type); 505 instance->partitions[j].leng ht=505 instance->partitions[j].length = 506 506 FLE32(pd[pd_num].length); 507 507 instance->partitions[j].number = … … 518 518 519 519 instance->volumes[i].partition_cnt++; 520 idx += pm1->partition_map_leng ht;520 idx += pm1->partition_map_length; 521 521 continue; 522 522 } … … 586 586 "found and skipped", i, pm->partition_map_type); 587 587 588 idx += pm->partition_map_leng ht;588 idx += pm->partition_map_length; 589 589 } 590 590 } … … 710 710 FLE32(vol->partition.starting_location) + 711 711 FLE32(phd->unallocated_space_table.position); 712 instance->uaspace_leng ht=712 instance->uaspace_length = 713 713 FLE32(phd->unallocated_space_table.length); 714 714 } … … 724 724 FLE32(vol->partition.starting_location) + 725 725 FLE32(phd->unallocated_space_bitmap.position); 726 instance->uaspace_leng ht=726 instance->uaspace_length = 727 727 FLE32(phd->unallocated_space_bitmap.length); 728 728 } … … 773 773 sizeof(udf_extent_t)), sizeof(udf_common_descriptor_t)); 774 774 instance->uaspace_start = pos; 775 instance->uaspace_leng ht= sct;775 instance->uaspace_length = sct; 776 776 instance->uasd = (udf_unallocated_space_descriptor_t *) 777 777 malloc(sct * instance->sector_size); -
uspace/srv/fs/udf/udf_volume.h
r7acd787 rc477c80 49 49 #define UDF_TAG_LVID 0x0009 /* Logical Volume Integrity Descriptor */ 50 50 51 /* Start ad ress of Anchor Volume Descriptor */51 /* Start address of Anchor Volume Descriptor */ 52 52 #define UDF_AVDP_SECTOR 256 53 53 … … 165 165 typedef struct udf_general_type { 166 166 uint8_t partition_map_type; 167 uint8_t partition_map_leng ht;167 uint8_t partition_map_length; 168 168 } __attribute__((packed)) udf_general_type_t; 169 169 170 170 typedef struct udf_type1_partition_map { 171 171 uint8_t partition_map_type; 172 uint8_t partition_map_leng ht;172 uint8_t partition_map_length; 173 173 uint16_t volume_sequence_number; 174 174 uint16_t partition_number; -
uspace/srv/logger/logs.c
r7acd787 rc477c80 198 198 } 199 199 200 /** Decreases reference counter on the log and dest ory the log if200 /** Decreases reference counter on the log and destroy the log if 201 201 * necessary. 202 202 * -
uspace/srv/net/dnsrsrv/dns_msg.c
r7acd787 rc477c80 52 52 /** Extend dynamically allocated string with suffix. 53 53 * 54 * @a *dstr points to a dynamically al ocated buffer containing a string.54 * @a *dstr points to a dynamically allocated buffer containing a string. 55 55 * Reallocate this buffer so that concatenation of @a *dstr and @a suff can 56 56 * fit in and append @a suff.
Note:
See TracChangeset
for help on using the changeset viewer.