1 | /* |
---|
2 | * Partition Manager |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1998. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * Copyright assigned to U.S. Government, 1994. |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.OARcorp.com/rtems/license.html. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/rtems/status.h> |
---|
18 | #include <rtems/rtems/support.h> |
---|
19 | #include <rtems/score/address.h> |
---|
20 | #include <rtems/score/object.h> |
---|
21 | #include <rtems/rtems/part.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | #include <rtems/score/sysstate.h> |
---|
24 | |
---|
25 | /*PAGE |
---|
26 | * |
---|
27 | * _Partition_Manager_initialization |
---|
28 | * |
---|
29 | * This routine initializes all partition manager related |
---|
30 | * data structures. |
---|
31 | * |
---|
32 | * Input parameters: |
---|
33 | * maximum_partitions - number of partitions to initialize |
---|
34 | * |
---|
35 | * Output parameters: NONE |
---|
36 | */ |
---|
37 | |
---|
38 | void _Partition_Manager_initialization( |
---|
39 | unsigned32 maximum_partitions |
---|
40 | ) |
---|
41 | { |
---|
42 | _Objects_Initialize_information( |
---|
43 | &_Partition_Information, |
---|
44 | OBJECTS_RTEMS_PARTITIONS, |
---|
45 | TRUE, |
---|
46 | maximum_partitions, |
---|
47 | sizeof( Partition_Control ), |
---|
48 | FALSE, |
---|
49 | RTEMS_MAXIMUM_NAME_LENGTH, |
---|
50 | FALSE |
---|
51 | ); |
---|
52 | |
---|
53 | /* |
---|
54 | * Register the MP Process Packet routine. |
---|
55 | */ |
---|
56 | |
---|
57 | #if defined(RTEMS_MULTIPROCESSING) |
---|
58 | _MPCI_Register_packet_processor( |
---|
59 | MP_PACKET_PARTITION, |
---|
60 | _Partition_MP_Process_packet |
---|
61 | ); |
---|
62 | #endif |
---|
63 | |
---|
64 | } |
---|