Open Source Market Segment LS
Open Source Market Segment RS
Tuesday, 25 October 2022 07:24

Removing i486 support in Linux only at discussion stage: Torvalds Featured

By
Removing i486 support in Linux only at discussion stage: Torvalds Image by Clker-Free-Vector-Images from Pixabay

Linux creator Linus Torvalds says a discussion over removing support for i486 was triggered by something not directly related, but that just touched on a similar area.

"This discussion was all triggered by some unrelated code that wanted to do 64-bit accesses and had other entirely [different] approaches to avoiding CMPXCHG8B," he told iTWire in response to a query on Tuesday.

Torvalds' suggestion about removing i486 support was made on the Linux kernel mailing list.

However, his comments indicated that it was still up in the air. "It's still just being discussed, and there are a couple of people who seem to have that old hardware, so who knows," he said.

"But it's basically about the kernel wanting to use some pretty core infrastructure that wasn't really available until the Pentium was released. The two main things are the time-stamp counter (TSC) and the CMPXCHG8B instruction.

"The TSC is already used in some core code in certain configurations that simply wouldn't work on an older CPU. And in other cases we go out of our way to have extra code to say 'check if it exists'.

Torvalds explained that CMPXCHG8B was meant for times when some code wanted to do atomic operations on 64-bit entities. "We kind of fake it right now, knowing that we don't support SMP on i486-class CPUs (it did exist in some non-standard configurations, but it was rare even at the time, and Linux never supported those machines)," he added.

"So we have some fallback code for 'fake this instruction that works as long as you only run on UP and without NMIs', and (again) the extra logic to then pick that code."

He said developers who actually touched this code were not using 32-bit machines in the first place, and thus any testing tended to be done on virtual machines that had all these features.

"Which is how new code, that uses the TSC without actually checking whether it exists, gets in and has been there for some time now," he noted.

"There's some additional clean-up that we could do - once you move the base requirement up, some other code just ends up being essentially dead legacy code that can be removed entirely. It already essentially is in practice, but we drag it along because it *could* be used on old machines (like the software FP emulation etc)."

Torvalds pointed out that the kernel had dropped i386 support a decade ago for similar reasons: "back then it was the XADD instruction and the (very broken) original 80386 kernel page fault behaviour that caused some operations on i386 hardware to just be fundamentally racy.

"IOW, it's just the next step in 'there was a real reason those features were added to hardware almost 30 years ago'."

Read 3445 times

Please join our community here and become a VIP.

Subscribe to ITWIRE UPDATE Newsletter here
JOIN our iTWireTV our YouTube Community here
BACK TO LATEST NEWS here




EXL AI IN ACTION VIRTUAL EVENT 20 MARCH 2025

Industry leaders are looking to transform their businesses and achieve measurable outcomes with AI.

As organisations across APAC navigate the complexities of AI adoption, this must-attend event brings together industry leaders, real-world demonstrations, and visionary panel discussions to bridge the gap between proof-of-concepts and enterprise-wide AI implementation.

Learn how to overcome common challenges in deploying AI at scale.​

Unlock cost savings, efficiency, and better customer experiences with AI.

Discover how industry expertise and data intelligence enable practical AI deployment.

Register for the event now!

REGISTER!

PROMOTE YOUR WEBINAR ON ITWIRE

It's all about Webinars.

Marketing budgets are now focused on Webinars combined with Lead Generation.

If you wish to promote a Webinar we recommend at least a 3 to 4 week campaign prior to your event.

The iTWire campaign will include extensive adverts on our News Site itwire.com and prominent Newsletter promotion https://itwire.com/itwire-update.html and Promotional News & Editorial. Plus a video interview of the key speaker on iTWire TV https://www.youtube.com/c/iTWireTV/videos which will be used in Promotional Posts on the iTWire Home Page.

Now we are coming out of Lockdown iTWire will be focussed to assisting with your webinars and campaigns and assistance via part payments and extended terms, a Webinar Business Booster Pack and other supportive programs. We can also create your adverts and written content plus coordinate your video interview.

We look forward to discussing your campaign goals with you. Please click the button below.

MORE INFO HERE!

BACK TO HOME PAGE
Sam Varghese

Sam Varghese has been writing for iTWire since 2006, a year after the site came into existence. For nearly a decade thereafter, he wrote mostly about free and open source software, based on his own use of this genre of software. Since May 2016, he has been writing across many areas of technology. He has been a journalist for nearly 40 years in India (Indian Express and Deccan Herald), the UAE (Khaleej Times) and Australia (Daily Commercial News (now defunct) and The Age). His personal blog is titled Irregular Expression.

Share News tips for the iTWire Journalists? Your tip will be anonymous

Subscribe to Newsletter

*  Enter the security code shown: img0

WEBINARS & EVENTS

CYBERSECURITY

PEOPLE MOVES

GUEST ARTICLES

Guest Opinion

ITWIRETV & INTERVIEWS

RESEARCH & CASE STUDIES

Channel News

Comments