Sebastian Huber created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1572

Project:Branches: sebhub/rtems:up/pc386-poll-char to rtems/rtos/rtems:main
Author: Sebastian Huber

## Summary

Closes #5799.

**Problem:** `BSP_poll_char` points to `BSP_inch()`, which waits until a 
character arrives. So `getchark()` blocks while no input is available, and 
`ts-validation-io-kernel` hangs until the test runner kills it.

**Fix:**

- `BSP_inch()` reads the serial device once and returns -1 if no character is 
available.
- Add `BSP_poll_polled_input()`, which scans the keyboard once, for the VGA 
console.
- Remove `validation-io-kernel` from the expected failures of the BSP. 
`validation-intr` stays there.

## Test

| Build | `ts-validation-io-kernel` on Qemu, `i386/pc586-sse` with 
`USE_COM1_AS_CONSOLE = True` |
| --- | --- |
| `main` | hangs after `B:RtemsIoValKernel`, ended by a 90 s timeout |
| this MR | `Z:TestsuitesValidationIoKernel:C:1:N:1:F:0` |

## AI Details
<!-- Make sure you have read our statement at 
https://www.rtems.org/generative-ai/ -->

### Prompt used

None as a single prompt.  The work was done in an interactive Claude Code 
session on the RTEMS tree.  Each change was directed and reviewed.

### AI model used

Claude Opus 5.5 (claude-opus-5-5), through Claude Code.

### How AI was used for the contribution

- ( ) Formatting
- ( ) Test creation.
- (x) Code comments.
- ( ) The entire contribution was generated using AI
- ( ) AI code completion such as Copilot in VSCode.

The implementation was produced in that session under my direction, and the 
commit message was drafted there.

### Access

I have not used a product which claims copyright in its output, and I have 
legitimate access to the one I used.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1572
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-7s8yizfcxqewf4du2a1hytw1z-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to