darwin-on-arm / xnu

Porting the Darwin kernel to the AArch64/ARMv7/ARMv6-A architectures.
Other
582 stars 146 forks source link

Implement error checking/clearing for RealView_getc #16

Closed b-man closed 10 years ago

b-man commented 10 years ago

Implemented error detection/clearing for RealView_getc. This resolves the odd behavior and eliminates the need for the timeout while waiting for the "receive fifo empty" bit to be set.

winocm commented 10 years ago

Look at osfmk/console/serial_general.c ;)

Sent from my iPhone

On Nov 12, 2013, at 1:48 AM, Brian McKenzie notifications@github.com wrote:

Implemented error detection/correction for RealView_getc. This resolves the odd behavior and eliminates the need for the timeout while waiting for the "receive fifo empty" bit to be set.

You can merge this Pull Request by running

git pull https://github.com/b-man/xnu master Or view, comment on, or merge it at:

https://github.com/winocm/xnu/pull/16

Commit Summary

Implement error checking/clearing for RealView_getc File Changes

M pexpert/arm/pe_realview.c (17) M pexpert/arm/realview.h (7) Patch Links:

https://github.com/winocm/xnu/pull/16.patch https://github.com/winocm/xnu/pull/16.diff

b-man commented 10 years ago

Re-included that timeout loop, sorry about that - I'll be a little more careful next time. :P