Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
14834a47
Commit
14834a47
authored
Sep 11, 2012
by
Wesley W. Terpstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two latent bugs reading undefined register bits.
parent
cac1837b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
minic.c
dev/minic.c
+1
-1
pps_gen.c
dev/pps_gen.c
+1
-1
No files found.
dev/minic.c
View file @
14834a47
...
...
@@ -250,7 +250,7 @@ int minic_rx_frame(uint8_t *hdr, uint8_t *payload, uint32_t buf_size, struct hw_
minic_rxbuf_free
(
num_words
);
minic
.
rx_head
=
(
uint32_t
*
)((
uint32_t
)
minic
.
rx_base
+
((
uint32_t
)
minic
.
rx_head
+
(
num_words
<<
2
)
-
(
uint32_t
)
minic
.
rx_base
)
%
(
minic
.
rx_size
<<
2
));
cur_avail
=
minic_readl
(
MINIC_REG_RX_AVAIL
)
;
cur_avail
=
minic_readl
(
MINIC_REG_RX_AVAIL
)
&
0xFFFFFF
;
/* 24-bit field */
/*empty buffer->no more received packets, or packet reception in progress but not done*/
if
(
!
RX_DESC_VALID
(
*
minic
.
rx_head
))
...
...
dev/pps_gen.c
View file @
14834a47
...
...
@@ -92,7 +92,7 @@ void pps_gen_get_time(uint64_t *seconds, uint32_t *nanoseconds)
do
{
sec1
=
pps_get_utc
();
ns_cnt
=
ppsg_read
(
CNTR_NSEC
)
;
ns_cnt
=
ppsg_read
(
CNTR_NSEC
)
&
0xFFFFFFFUL
;
/* 28-bit wide register */
sec2
=
pps_get_utc
();
}
while
(
sec2
!=
sec1
);
...
...
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