What is? And do you have an OS that you are comfortable calling "secure"? Remember security through obscurity as enjoyed by Mac and Linux doesn't apply here because there is actual money and hence incentive to find vulnerability at stake.
You don't need a fully featured OS, with the massive attack surface that it provides.
If you wish, you can put the actual UI in a separate chip, with more modern hardware, handling rendering and input.
But please, do not run the control logic for the ATM on a desktop OS