Subversion Repositories HelenOS-historic

Rev

Rev 609 | Rev 668 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 609 Rev 625
Line 308... Line 308...
308
 * @return 0 on failure, 1 on success.
308
 * @return 0 on failure, 1 on success.
309
 */
309
 */
310
int cmd_help(cmd_arg_t *argv)
310
int cmd_help(cmd_arg_t *argv)
311
{
311
{
312
    link_t *cur;
312
    link_t *cur;
313
    ipl_t ipl;
-
 
314
 
313
 
315
    spinlock_lock(&cmd_lock);
314
    spinlock_lock(&cmd_lock);
316
   
315
   
317
    for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) {
316
    for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) {
318
        cmd_info_t *hlp;
317
        cmd_info_t *hlp;
Line 337... Line 336...
337
 * @return 0 on failure, 1 on success.
336
 * @return 0 on failure, 1 on success.
338
 */
337
 */
339
int cmd_desc(cmd_arg_t *argv)
338
int cmd_desc(cmd_arg_t *argv)
340
{
339
{
341
    link_t *cur;
340
    link_t *cur;
342
    ipl_t ipl;
-
 
343
 
341
 
344
    spinlock_lock(&cmd_lock);
342
    spinlock_lock(&cmd_lock);
345
   
343
   
346
    for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) {
344
    for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) {
347
        cmd_info_t *hlp;
345
        cmd_info_t *hlp;
Line 366... Line 364...
366
}
364
}
367
 
365
 
368
/** Search symbol table */
366
/** Search symbol table */
369
int cmd_symaddr(cmd_arg_t *argv)
367
int cmd_symaddr(cmd_arg_t *argv)
370
{
368
{
371
    __address symaddr;
-
 
372
    char *symbol;
-
 
373
 
-
 
374
    symtab_print_search(argv->buffer);
369
    symtab_print_search(argv->buffer);
375
   
370
   
376
    return 1;
371
    return 1;
377
}
372
}
378
 
373
 
Line 508... Line 503...
508
}
503
}
509
 
504
 
510
/** Write 4 byte value to address */
505
/** Write 4 byte value to address */
511
int cmd_set4(cmd_arg_t *argv)
506
int cmd_set4(cmd_arg_t *argv)
512
{
507
{
513
    char *symbol;
-
 
514
    __u32 *addr ;
508
    __u32 *addr ;
515
    __u32 arg1 = argv[1].intval;
509
    __u32 arg1 = argv[1].intval;
516
    bool pointer = false;
510
    bool pointer = false;
517
 
511
 
518
    if (((char *)argv->buffer)[0] == '*') {
512
    if (((char *)argv->buffer)[0] == '*') {