Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
a75b2d88
Commit
a75b2d88
authored
Jan 27, 2013
by
Danilo Sabato
Committed by
Alessandro Rubini
Feb 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-bare-linux: fix ppi's fields init at startup
parent
bc3bf431
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
bare-startup.c
arch-bare-linux/bare-startup.c
+26
-0
No files found.
arch-bare-linux/bare-startup.c
View file @
a75b2d88
...
...
@@ -24,6 +24,16 @@ static struct pp_instance ppi_static;
static
struct
pp_net_path
net_path_static
;
int
pp_diag_verbosity
=
0
;
/* ppi fields */
static
UInteger16
sent_seq_id
[
16
];
static
DSDefault
defaultDS
;
static
DSCurrent
currentDS
;
static
DSParent
parentDS
;
static
DSPort
portDS
;
static
DSTimeProperties
timePropertiesDS
;
static
struct
pp_servo
servo
;
static
struct
pp_frgn_master
frgn_master
;
void
ppsi_main
(
void
)
{
struct
pp_instance
*
ppi
=
&
ppi_static
;
/* no malloc, one instance */
...
...
@@ -31,11 +41,27 @@ void ppsi_main(void)
PP_PRINTF
(
"bare: starting. Compiled on %s
\n
"
,
__DATE__
);
ppi
->
net_path
=
&
net_path_static
;
ppi
->
sent_seq_id
=
sent_seq_id
;
ppi
->
defaultDS
=
&
defaultDS
;
ppi
->
currentDS
=
&
currentDS
;
ppi
->
parentDS
=
&
parentDS
;
ppi
->
portDS
=
&
portDS
;
ppi
->
timePropertiesDS
=
&
timePropertiesDS
;
ppi
->
servo
=
&
servo
;
ppi
->
frgn_master
=
&
frgn_master
;
ppi
->
arch_data
=
NULL
;
if
(
bare_open_ch
(
ppi
,
"eth0"
))
{
pp_diag_error
(
ppi
,
bare_errno
);
pp_diag_fatal
(
ppi
,
"open_ch"
,
""
);
}
pp_open_instance
(
ppi
,
NULL
);
OPTS
(
ppi
)
->
iface_name
=
"eth0"
;
#ifdef PPSI_SLAVE
OPTS
(
ppi
)
->
slave_only
=
1
;
#endif
bare_main_loop
(
ppi
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment