Changeset 46db10e9 in mainline


Ignore:
Timestamp:
2009-03-04T22:54:12Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f7734012
Parents:
5e9de3a
Message:

Init-task names for ia64.

Files:
3 edited

Legend:

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

    r5e9de3a r46db10e9  
    3535#include <balloc.h>
    3636#include <macros.h>
     37#include <string.h>
    3738
    3839extern bootinfo_t binfo;
     
    125126                        bootinfo->taskmap.tasks[bootinfo->taskmap.count].size =
    126127                            components[i].size;
     128                        strncpy(bootinfo->taskmap.tasks[
     129                            bootinfo->taskmap.count].name,
     130                            components[i].name, BOOTINFO_TASK_NAME_BUFLEN);
    127131                        bootinfo->taskmap.count++;
    128132                }
  • kernel/arch/ia64/include/bootinfo.h

    r5e9de3a r46db10e9  
    4040#define EFI_MEMMAP_IO_PORTS 2
    4141
     42/** Size of buffer for storing task name in binit_task_t. */
     43#define BOOTINFO_TASK_NAME_BUFLEN 32
    4244
    4345typedef struct {
    4446        void *addr;
    4547        unsigned long size;
     48        char name[BOOTINFO_TASK_NAME_BUFLEN];
    4649} binit_task_t;
    4750       
  • kernel/arch/ia64/src/ia64.c

    r5e9de3a r46db10e9  
    6363#include <print.h>
    6464#include <sysinfo/sysinfo.h>
     65#include <string.h>
    6566
    6667/* NS16550 as a COM 1 */
     
    8586                    VRN_MASK;
    8687                init.tasks[i].size = bootinfo->taskmap.tasks[i].size;
     88                strncpy(init.tasks[i].name, bootinfo->taskmap.tasks[i].name,
     89                        CONFIG_TASK_NAME_BUFLEN);
    8790        }
    8891}
Note: See TracChangeset for help on using the changeset viewer.