Changeset f7734012 in mainline


Ignore:
Timestamp:
2009-03-05T19:32:36Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d360758
Parents:
46db10e9
Message:

Init-task names for sparc64 (that's the final one, whew).

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/main.c

    r46db10e9 rf7734012  
    180180                        bootinfo.taskmap.tasks[bootinfo.taskmap.count].size =
    181181                            components[i].size;
     182                        strncpy(bootinfo.taskmap.tasks[
     183                            bootinfo.taskmap.count].name, components[i].name,
     184                            BOOTINFO_TASK_NAME_BUFLEN);
    182185                        bootinfo.taskmap.count++;
    183186                }
  • boot/arch/sparc64/loader/main.h

    r46db10e9 rf7734012  
    3939#define TASKMAP_MAX_RECORDS 32
    4040
     41/** Size of buffer for storing task name in task_t. */
     42#define BOOTINFO_TASK_NAME_BUFLEN 32
     43
    4144#define BSP_PROCESSOR   1
    4245#define AP_PROCESSOR    0
     
    4851        void *addr;
    4952        uint32_t size;
     53        char name[BOOTINFO_TASK_NAME_BUFLEN];
    5054} task_t;
    5155
  • kernel/arch/sparc64/include/boot/boot.h

    r46db10e9 rf7734012  
    4949#define MEMMAP_MAX_RECORDS      32
    5050
     51#define BOOTINFO_TASK_NAME_BUFLEN 32
     52
    5153typedef struct {
    5254        void * addr;
    5355        uint32_t size;
     56        char name[BOOTINFO_TASK_NAME_BUFLEN];
    5457} utask_t;
    5558
  • kernel/arch/sparc64/src/sparc64.c

    r46db10e9 rf7734012  
    4848#include <userspace.h>
    4949#include <ddi/irq.h>
     50#include <string.h>
    5051
    5152bootinfo_t bootinfo;
     
    6263                init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr;
    6364                init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
     65                strncpy(init.tasks[i].name, bootinfo.taskmap.tasks[i].name,
     66                        CONFIG_TASK_NAME_BUFLEN);
    6467        }
    6568       
Note: See TracChangeset for help on using the changeset viewer.