Changeset 7f0837c in mainline
- Timestamp:
- 2006-04-24T12:59:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd8af4b
- Parents:
- 24f3874
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/page_ht.c
r24f3874 r7f0837c 155 155 /** Map page to frame using page hash table. 156 156 * 157 * Map virtual address 'page' to physical address 'frame'158 * using 'flags'.157 * Map virtual address @page to physical address @frame 158 * using @flags. 159 159 * 160 160 * The page table must be locked and interrupts must be disabled. 161 161 * 162 * @param as Address space to which page belongs.162 * @param as Address space to which @page belongs. 163 163 * @param page Virtual address of the page to be mapped. 164 164 * @param frame Physical address of memory frame to which the mapping is done. … … 191 191 /** Remove mapping of page from page hash table. 192 192 * 193 * Remove any mapping of 'page' within address space 'as'.193 * Remove any mapping of @page within address space @as. 194 194 * TLB shootdown should follow in order to make effects of 195 195 * this call visible. … … 218 218 * The page table must be locked and interrupts must be disabled. 219 219 * 220 * @param as Address space to wich page belongs.220 * @param as Address space to wich @page belongs. 221 221 * @param page Virtual page. 222 222 * -
genarch/src/mm/page_pt.c
r24f3874 r7f0837c 50 50 /** Map page to frame using hierarchical page tables. 51 51 * 52 * Map virtual address 'page' to physical address 'frame'53 * using 'flags'.52 * Map virtual address @page to physical address @frame 53 * using @flags. 54 54 * 55 55 * The page table must be locked and interrupts must be disabled. … … 108 108 * The page table must be locked and interrupts must be disabled. 109 109 * 110 * @param as Address space to wich page belongs.110 * @param as Address space to wich @page belongs. 111 111 * @param page Virtual address of the page to be demapped. 112 112 */ … … 228 228 * The page table must be locked and interrupts must be disabled. 229 229 * 230 * @param as Address space to which page belongs.230 * @param as Address space to which @page belongs. 231 231 * @param page Virtual page. 232 232 * -
generic/include/mm/buddy.h
r24f3874 r7f0837c 42 42 void (*set_order)(buddy_system_t *, link_t *, __u8); /**< Set order of block passed as argument. */ 43 43 __u8 (*get_order)(buddy_system_t *, link_t *); /**< Return order of block passed as argument. */ 44 void (*mark_busy)(buddy_system_t *, link_t *); /**< Mark block as busy */45 void (*mark_available)(buddy_system_t *, link_t *); /**< Mark block as busy*/44 void (*mark_busy)(buddy_system_t *, link_t *); /**< Mark block as busy. */ 45 void (*mark_available)(buddy_system_t *, link_t *); /**< Mark block as available. */ 46 46 /** Find parent of block that has given order */ 47 47 link_t *(* find_block)(buddy_system_t *, link_t *, __u8); -
generic/src/debug/print.c
r24f3874 r7f0837c 81 81 } 82 82 83 /** Print one string without appending '\n' to the end 84 * 85 * Do nt use this function directly - printflock is not locked here83 /** Print one string without appending '\n' to the end. 84 * 85 * Do not use this function directly - printflock is not locked here. 86 86 * 87 87 */ … … 99 99 } 100 100 101 /** Print count characters from buffer to output 102 * 101 /** Print count characters from buffer to output. 102 * 103 * @param buffer Address of the buffer with charaters to be printed. 104 * @param count Number of characters to be printed. 105 * 106 * @return Number of characters printed. 103 107 */ 104 108 static int putnchars(const char *buffer, __native count) … … 119 123 /** Print one formatted character 120 124 * 121 * @param c character to print125 * @param c Character to print. 122 126 * @param width 123 127 * @param flags 124 * @return number of printed characters or EOF128 * @return Number of printed characters or EOF. 125 129 */ 126 130 static int print_char(char c, int width, __u64 flags) … … 350 354 } 351 355 352 /** General formatted text print353 * 354 * Print string formatted according to the fmt parameter356 /** Print formatted string. 357 * 358 * Print string formatted according to the @fmt parameter 355 359 * and variadic arguments. Each formatting directive 356 360 * must have the following form: … … 362 366 * - Align to left. 363 367 * + Print positive sign just as negative. 364 * (space) If printed number is positive and '+' flag is not set, print space in place of sign.365 * 0 Print 0 as padding instead of spaces. Zeroes are placed between sign and the rest of number.368 * (space) If the printed number is positive and '+' flag is not set, print space in place of sign. 369 * 0 Print 0 as padding instead of spaces. Zeroes are placed between sign and the rest of the number. 366 370 * This flag is ignored if '-' flag is specified. 367 371 * … … 369 373 * Specify minimal width of printed argument. If it is bigger, width is ignored. 370 374 * If width is specified with a '*' character instead of number, width is taken from parameter list. 371 * Int parameterexpected before parameter for processed conversion specification.375 * And integer parameter is expected before parameter for processed conversion specification. 372 376 * If this value is negative its absolute value is taken and the '-' flag is set. 373 377 * … … 391 395 * CONVERSIONS: 392 396 * 393 * % Print percentage character .397 * % Print percentage character itself. 394 398 * 395 399 * c Print single character. … … 398 402 * 399 403 * P, p Print value of a pointer. Void * value is expected and it is printed in hexadecimal notation with prefix 400 * ( 404 * (as with %#X or %#x for 32bit or %#X / %#x for 64bit long pointers). 401 405 * 402 406 * b Print value as unsigned binary number. Prefix is not printed by default. (Nonstandard extension.) … … 408 412 * u Print unsigned decimal number. 409 413 * 410 * X, x Print hexadecimal number with upper- or lower-case. Prefix is not printed by default. 411 * 412 * All other characters from fmt except the formatting directives414 * X, x Print hexadecimal number with upper- or lower-case. Prefix is not printed by default. 415 * 416 * All other characters from @fmt except the formatting directives 413 417 * are printed in verbatim. 414 418 * 415 419 * @param fmt Formatting NULL terminated string. 416 * @return count of printed characters or negative value on fail.420 * @return Number of printed characters or negative value on failure. 417 421 */ 418 422 int printf(const char *fmt, ...) -
generic/src/main/main.c
r24f3874 r7f0837c 96 96 #define CONFIG_STACK_SIZE ((1<<STACK_FRAMES)*STACK_SIZE) 97 97 98 /** Bootstrap CPU main kernel routine98 /** Main kernel routine for bootstrap CPU. 99 99 * 100 100 * Initializes the kernel by bootstrap CPU. … … 138 138 139 139 140 /** Bootstrap CPU main kernel routine stack wrapper140 /** Main kernel routine for bootstrap CPU using new stack. 141 141 * 142 142 * Second part of main_bsp(). … … 225 225 226 226 #ifdef CONFIG_SMP 227 /** Application CPUs main kernel routine227 /** Main kernel routine for application CPUs. 228 228 * 229 229 * Executed by application processors, temporary stack … … 276 276 277 277 278 /** Application CPUs main kernel routine stack wrapper278 /** Main kernel routine for application CPUs using new stack. 279 279 * 280 280 * Second part of main_ap(). -
generic/src/mm/buddy.c
r24f3874 r7f0837c 46 46 * Allocate memory for and initialize new buddy system. 47 47 * 48 * @param b Preallocated buddy system control data 48 * @param b Preallocated buddy system control data. 49 49 * @param max_order The biggest allocable size will be 2^max_order. 50 50 * @param op Operations for new buddy system. -
generic/src/mm/page.c
r24f3874 r7f0837c 74 74 /** Insert mapping of page to frame. 75 75 * 76 * Map virtual address 'page' to physical address 'frame'77 * using 'flags'. Allocate and setup any missing page tables.76 * Map virtual address @page to physical address @frame 77 * using @flags. Allocate and setup any missing page tables. 78 78 * 79 79 * The page table must be locked and interrupts must be disabled. … … 94 94 /** Remove mapping of page. 95 95 * 96 * Remove any mapping of 'page' within address space 'as'.96 * Remove any mapping of @page within address space @as. 97 97 * TLB shootdown should follow in order to make effects of 98 98 * this call visible. -
generic/src/proc/scheduler.c
r24f3874 r7f0837c 240 240 * When the function decides to relink rq's, it reconnects 241 241 * respective pointers so that in result threads with 'pri' 242 * greater or equal 'start'are moved to a higher-priority queue.242 * greater or equal @start are moved to a higher-priority queue. 243 243 * 244 244 * @param start Threshold priority. -
generic/src/proc/task.c
r24f3874 r7f0837c 116 116 * @param name Program name. 117 117 * 118 * @return Task of the running program or NULL on error 118 * @return Task of the running program or NULL on error. 119 119 */ 120 120 task_t * task_run_program(void *program_addr, char *name) … … 226 226 spinlock_unlock(&tasks_lock); 227 227 interrupts_restore(ipl); 228 229 } 228 } -
generic/src/synch/condvar.c
r24f3874 r7f0837c 77 77 * 78 78 * For exact description of possible combinations of 79 * 'usec' and 'trywait', see comment for waitq_sleep_timeout().79 * @usec and @trywait, see comment for waitq_sleep_timeout(). 80 80 * 81 81 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/futex.c
r24f3874 r7f0837c 94 94 * @param uaddr Userspace address of the futex counter. 95 95 * @param usec If non-zero, number of microseconds this thread is willing to sleep. 96 * @param trydown If usec is zero and trydown is non-zero, conditional operation will be attempted.96 * @param trydown If @usec is zero and trydown is non-zero, conditional operation will be attempted. 97 97 * 98 98 * @return One of ESYNCH_TIMEOUT, ESYNCH_OK_ATOMIC and ESYNCH_OK_BLOCKED. See synch.h. … … 219 219 /** Compute hash index into futex hash table. 220 220 * 221 * @param key Address where the @key (i.e. physical address of futex counter) is stored. 222 * 223 * @return Index into futex hash table. 224 */ 225 index_t futex_ht_hash(__native *key) 226 { 227 return *key & (FUTEX_HT_SIZE-1); 228 } 229 230 /** Compare futex hash table item with a key. 231 * 221 232 * @param key Address where the key (i.e. physical address of futex counter) is stored. 222 233 * 223 * @return Index into futex hash table. 224 */ 225 index_t futex_ht_hash(__native *key) 226 { 227 return *key & (FUTEX_HT_SIZE-1); 228 } 229 230 /** Compare futex hash table item with a key. 231 * 232 * @param key Address where the key (i.e. physical address of futex counter) is stored. 233 * 234 * @return True if the item matches the key. False otherwise. 234 * @return True if the item matches the @key. False otherwise. 235 235 */ 236 236 bool futex_ht_compare(__native *key, count_t keys, link_t *item) -
generic/src/synch/mutex.c
r24f3874 r7f0837c 52 52 * 53 53 * For exact description of possible combinations of 54 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().54 * @usec and @trylock, see comment for waitq_sleep_timeout(). 55 55 * 56 56 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/rwlock.c
r24f3874 r7f0837c 92 92 * 93 93 * For exact description of possible combinations of 94 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().94 * @usec and @trylock, see comment for waitq_sleep_timeout(). 95 95 * 96 96 * @return See comment for waitq_sleep_timeout(). … … 146 146 * 147 147 * For exact description of possible combinations of 148 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().148 * @usec and @trylock, see comment for waitq_sleep_timeout(). 149 149 * 150 150 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/semaphore.c
r24f3874 r7f0837c 66 66 * 67 67 * For exact description of possible combinations of 68 * 'usec' and 'trydown', see comment for waitq_sleep_timeout().68 * @usec and @trydown, see comment for waitq_sleep_timeout(). 69 69 * 70 70 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/waitq.c
r24f3874 r7f0837c 161 161 * @param nonblocking Blocking vs. non-blocking operation mode switch. 162 162 * 163 * If usec is greater than zero, regardless of the value ofnonblocking,163 * If @usec is greater than zero, regardless of the value of @nonblocking, 164 164 * the call will not return until either timeout or wakeup comes. 165 165 * 166 * If usec is zero andnonblocking is zero (false), the call166 * If @usec is zero and @nonblocking is zero (false), the call 167 167 * will not return until wakeup comes. 168 168 * 169 * If usec is zero andnonblocking is non-zero (true), the call will169 * If @usec is zero and @nonblocking is non-zero (true), the call will 170 170 * immediately return, reporting either success or failure. 171 171 *
Note:
See TracChangeset
for help on using the changeset viewer.