4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * Object Handler |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/address.h> |
---|
21 | #include <rtems/score/chain.h> |
---|
22 | #include <rtems/score/object.h> |
---|
23 | #if defined(RTEMS_MULTIPROCESSING) |
---|
24 | #include <rtems/score/objectmp.h> |
---|
25 | #endif |
---|
26 | #include <rtems/score/thread.h> |
---|
27 | #include <rtems/score/wkspace.h> |
---|
28 | #include <rtems/score/sysstate.h> |
---|
29 | #include <rtems/score/isr.h> |
---|
30 | |
---|
31 | /*PAGE |
---|
32 | * |
---|
33 | * _Objects_Compare_name_raw |
---|
34 | * |
---|
35 | * XXX |
---|
36 | */ |
---|
37 | |
---|
38 | boolean _Objects_Compare_name_raw( |
---|
39 | void *name_1, |
---|
40 | void *name_2, |
---|
41 | uint16_t length |
---|
42 | ) |
---|
43 | { |
---|
44 | #if 0 |
---|
45 | uint32_t *name_1_p = (uint32_t *) name_1; |
---|
46 | uint32_t *name_2_p = (uint32_t *) name_2; |
---|
47 | uint32_t tmp_length = length / OBJECTS_NAME_ALIGNMENT; |
---|
48 | #endif |
---|
49 | |
---|
50 | if ( name_1 == name_2 ) |
---|
51 | return TRUE; |
---|
52 | return FALSE; |
---|
53 | |
---|
54 | #if 0 |
---|
55 | while ( tmp_length-- ) |
---|
56 | if ( *name_1_p++ != *name_2_p++ ) |
---|
57 | return FALSE; |
---|
58 | |
---|
59 | return TRUE; |
---|
60 | #endif |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.