NetBSD Ported to AMD x86-64 (Sledgehammer) 117
fvdl writes: "Last week, a port of NetBSD to the x86-64 (tm) architecture was committed to the NetBSD CVS repository. The x86-64 is AMD's upcoming 64bit line of CPUs. For now, it is only known to work on the Virtutech simulator, since no x86-64 hardware is available yet. In this environment, it runs multi-user. NetBSD/x86_64 is the 44th architecture that NetBSD runs on (12 different families of CPUs). The porting was done by Frank van der Linden of Wasabi Systems, with
kind support from AMD, who provided the simulator and fast machines
on which ro run it. The Wasabi press release is
here. For more information on the x86-64, see of course
AMD's website and x86-64.org"
Situation Irony (Score:1)
Re:Erm... (Score:3)
Also, different versions of CPUs differ too -- so there is often a little work to be done when a new CPU is actually produced.
But these changes are minor compared to getting the whole operating system to run, and hence don't take very long.
And as a short note: NetBSD is already 64 bit clean and has been for many years. (check out the alpha port [netbsd.org], which has been available since 1995.) At that time, the code-base was made 64 bit clean.
Re:Will I be "out of memory" when first 640K is fu (Score:2)
There are already 256 interrupt lines on the x86. Has been ever since the 8088.
What are you smoking? Can I have some?
There is one interrupt line on the 8086. Not surprisingly it is called INTR. When it is asserted the processor finishes its current instruction, releases the bus and asserts INTA.
When INTA is received the device requesting the interrupt places a 3-bit vector address on the data bus. The processor multiples this by 4 and grabs the vector's address from this calculated offset + the vector base address (usually 0x00000, but can be anywhere in protected mode).
I'm a little rusty here (haven't done hardware 80x86 development in some years now) but your statement is false. There's only one maskable interrupt line on the x86. There's NMI but it's hardwired to vector 2. So I guess you could argue for a total of TWO interrupt lines. RESET doesn't count. :-)
Perhaps what you're thinking of is the 256 "software" interrupt vectors? i.e. the 0xcd opcode?
I was always curious as to why the IBM PC/AT designers decided to cascade they way they did. I would have had the first PIC (Programmable Interrupt Controller) used as a first-stage cascader. I.e. there are no 1st-level interrupts. Then you put the 2nd, 3rd, 4th, etc. PICs on the eight IRQ lines of the 1st PIC. That way you could have gotten to 256 HARDWARE interrupts and not had this "if it comes in on INT9, check the 2nd PIC" problem -- they'd ALL have to be checked.
Mind you, the task of routing 256 interrupt lines to a 68-pin header would have been tricky. :-)
Re:Transmeta? (Score:2)
I believe they (I assume with AMDs help) did this last year. For exactly the reasons you state. I expect they skipped actually supporting more then 4G of physical RAM (or whatever the normal TM chips support) because they would have required real hardware work. I also expect any of the 64 bit instructions are actually kind of slow, but hay probably a lot faster then the pure software emulator (as it is a mostly software emulator with modest hardware assist).
You might try a google search on comp.arch for more info.
Re:32-bit (Score:2)
Sure, unless the deciding factor turns out to be how slow the 64 bit code is...
(not it isn't painfully slow, but it isn't as fast as some of the already shipping RISC machines! It's not called the iTanic for nothing...)
Re:Will I be "out of memory" when first 640K is fu (Score:2)
I would assume they did it to save $27.38 or whatever another PIC and more board traces would have cost. Much like the reason they did the A20 address rollover hack with the keyboard controller.
FYI this problem is "fixed" on systems that have and use the IO APIC, but they still have to emulate the old two level PIC design so they can run "old" OSes and drivers. (I think the APIC may predate the P-I, but it wasn't integrated on all P-II or even PPro CPUs, and I don't know if Intel clones have them or not...)
Re:are businesses going to use this? (Score:1)
As far as practicality goes, if you don't see why companies will be jumping at 64 bit systems as quickly as they can get them, you obviously haven't been paying much attention to what first DEC and Sun, and now Intel have been doing lately, have you?
--
Re:Transmeta? (Score:2)
No idea when/if they'll finish the project, tho. Spill it, Linus!
Re:Will I be "out of memory" when first 640K is fu (Score:1)
This was the plan all along, my friend... (Score:2)
FWIW, 64 bits puts the new rollover date well past the probable heat death of the universe.
Re:Can we please change ... (Score:1)
Re:32-bit (Score:2)
Now, there may be some issues with the 32-bit addressing and extra instructions not being as heavily optimized as they might be on a purely 32-bit processor... But given that this is meant to replace the K7 line across the board, I'd say they will be putting a lot of effort into making the 32-bit smoke. Shouldn't be too hard, since the 64 is just a bit-extension and simplification of the 32 stuff. Time will tell, of course.
Re:Why? (Score:2)
Re:32-bit (Score:1)
Oh really? (Score:2)
However, what would I know? I just run a company that exclusively focuses on NetBSD.
Perry Metzger
CEO
Wasabi Systems
Why NetBSD? (Score:3)
I don't know how many NetBSD users there are, but somehow, I suspect you don't either. NetBSD is in use every day in far more places than you think. Your DSL router or a cache box at your ISP may very well run NetBSD without your even knowing it. Ditto for large numbers of users of NCs -- NC/OS is NetBSD 1.3. There are users of hundreds of thousands of things like airline reservation terminals and such that use NetBSD every day and don't even know it. NetBSD is a very portable, very clean OS with a BSD license attached, so it gets put into LOTS of embedded hardware.
There are also a pretty large number of people who use NetBSD day to day and are very well aware of the fact. Just look at the NetBSD mailing lists if you don't believe me.
Why do people like NetBSD? Well, that would be a very long discussion. Suffice it to say, though, we've done a lot of careful architectural work on NetBSD over the years and it has paid off handsomely. There is a reason we port to new hardware quickly for instance, and it isn't that we have more fanatics than the Linux crowd. We've also got a BSD license on the code, and without trying to start a fight some people prefer the BSD license to the GPL. There are also other people who like having their whole OS build out of a single coherent source tree -- Linux code integration is a big pain which is why most people don't build full Linux systems from sources on their own.
Why is it news that there's now an OS that's gone multiuser on the x86-64? Well, that's probably more to do with the x86-64 being a neat new design than to do with us. We do a lot of ports and most of them don't get slashdotted. However, I'd say that given the fight brewing between Intel and AMD, this wasn't the silliest story for slashdot to cover.
Why do lots of people seem to think there are no BSD users in the world? I don't think anyone but a troll would claim that with a straight face...
Perry
Re:Alright! (Score:2)
So, I'm fishing around in my patented /. Flippant Response Generator, and I'm seeing a 'windows 2005' comment and some obscure '640k' reference.
Re:Can we please change ... (Score:2)
There is no connection to Satanism. The daemon is not anti-christian or neo-pagan. He's just a mascot. I don't see you complaining about the New Jersey Blue Devils hockey team, or any of the other countless examples in todays society. Some so-called Christians will have you believe that all things that aren't god are evil, or that anything that matches their silly little filters for a devil is wrong. They are not to be trusted as they distort the truth and burn people at the stakes.
See, old stereo types are easy to pin on people, but utterly without basis in fact. There hasn't been a witch burning in over a hundred years.
Re:Can we please change ... (Score:1)
When Penguins Attack
I'll tell you, it scared me silly. I'm getting goose bumps again just by thinking about it...
Re:Nooooooo!!!! (Score:1)
begin source----------
bsd
end source------------
Of course, the chip will only need one instruction, making it a RISC machine.
Re:Nooooooo!!!! (Score:1)
Re:x86-64 (tm) ??? (Score:1)
Re:Nooooooo!!!! (Score:1)
I would love to see Microsoft convince someone to "upgrade" from Office 2005 to Office 2003. Although, I suppose if anyone could they could :)
Caution: contents may be quarrelsome and meticulous!
Re:well... (Score:2)
--
Translation? (Score:2)
Can anyone translate this to plain old everybody-talk? Babel Fish garbled it up pretty bad.
--
Re:Nooooooo!!!! (Score:2)
Well, we'll just have to lock the door, so it can't get out.
--
Re:True True..... (Score:2)
--
Re:How many bits? (Score:1)
This is far more effective that rewriting every bit of software out there, and re-defining what time it is. Just change the CPU and compiler, and everything under them gets "fixed" by simply recompiling them.
Or am I missing the obvious here?
Re:Why? (Score:1)
Re:Nooooooo!!!! (Score:1)
According to Williams--best known to most Americans as "Potsie" on the popular, '50s-nostalgia-themed 1970s sitcom Happy Days before being named head of the embattled Department of Retro by President Clinton in 1992--the U.S.'s exponentially decreasing retro gap is in danger of achieving parity with real-time historical events early in the next century, creating what leading retro experts call a "futurified recursion loop," or "retro-present warp," in the world of American pop-cultural kitsch appreciation.
"Before long," Williams warned, "the National Retro Clock will hit 1992, and we will witness a massive grunge-retro explosion, which will overlap with the late-period, mainstream-pop remnants of the original grunge movement itself. For the first time in history, a phenomenon and nostalgia for that particular phenomenon will actually meet."
Re:Can we please change ... (Score:1)
bsd's mascot kicks fucking ass.
Re:32-bit (Score:2)
Re:32-bit (Score:3)
-B
Re:Nooooooo!!!! (Score:2)
Re:Why? (Score:1)
Re:Why? (Score:1)
Re:Why? (Score:1)
I bow to your superior knowledge of negative numbers.
well... (Score:2)
of COURSE it runs NetBSD!!
(sorry, obligitory
sean
*nix distribs? Well... (Score:2)
...if you count Sun Solaris and Digital/Compaq DigitalUnix/Tru64, there are popular *nixes that have done native 64-bit hardware and OSes for many years. I remember seeing many early programs which were hard to port to DEC Alphas running Digital Unix because they assumed that 'long int' and pointers were 32 bits instead of 64.
Its good. (Score:1)
I run a different UNIX-like operating system, but very much admire the efforts of the NetBSD team. Congratulations to all involved. Such commitment on behalf of both parties shows the true beauty of the community.
Re:*BSD loses networking test - finishes dead last (Score:1)
I'm sure you're intelligent enough to know that a single test does not give anything more than a rating for those conditions running that software.
Tests like that are a good thing - I'm pretty sure any of the issues raised have made their way to the relevant developers and I'd expect them to be addressed in the next release
Re:How many bits? (Score:1)
Longs and pointers 64 bits, int 32, short 16, long long probably 128.
Re:Can we please change ... (Score:1)
--
Re:Can we please change ... (Score:1)
--
Re:itanimum is power (Score:1)
here [hp.com]
Jon
That's funny. (Score:1)
Re:Can we please change ... (Score:1)
Haven't turned on your TV in a while, have you?
Re:Can we please change ... (Score:1)
The best you can troll with is daemon == demon, and claim that AMD shouldn't associate with such. Guess what? x86-64.org used to ONLY mention GNU/Linux and after being reminded that FreeBSD/NetBSD Exists, did they change the focus of the page to be INCLUSIVE rather than EXCLUSIVE.
It is too bad you want to exclusive rather than inclusive.
are businesses going to use this? (Score:4)
B1ood
Re:Wow! (Score:1)
Re:Wow! (Score:1)
x86-64 (tm) ??? (Score:1)
Re:x86-64 (tm) ??? (Score:1)
True True..... (Score:2)
Programer: Waaasaaabi!
User: Wasabi?
Programer: Waaaaasaaaaabi!
User: Wasabi?
BSD Guys: Waaaaasaaaaabi!
User: Waasaabi!
Everybody: Waaasaaabi!
Wasabi!
Re:Nooooooo!!!! (Score:2)
This is actually becoming a standard practice ... a few mos ago I saw an add for the Sony Playstation 9 :)
Re:Congrats, NetBSD team! (Score:1)
Alright! (Score:1)
---
Re:32-bit (Score:2)
Re:Nooooooo!!!! (Score:1)
"You're looking at now now. Everything that's happening now, is happening now."
"What happened to then?"
"You missed it."
"When?!"
"Just now."
"When will then be now?"
"Soon"
Re:well... (Score:2)
NetBSD guru's have ported their OS to Microsoft's .NET platform.
Specualtion abounds as to whther to call it ".NetBSD" or "NetBSD-NET", though sources inside Microsoft we reported to be screaming "Damn this Unix virus - it's everwhere!"
Re:Congrats, NetBSD team! (Score:1)
Paul Alan wrote the emulator for the Altair while Bill Gates wrote BASIC. Paul Alan was the one to actually deliver the product to New Mexico, and had to write the boot loader on the plane trip there! It did run first time amazingly.
Matt Newell
Re:Us, Frank .... or ..... Frank on Frank (Score:1)
Transmeta? (Score:4)
Since the Transmeta "code morpher" is closed source, and the actual machine interface is propretary, only Transmeta can do this port.
think of what you could do... (Score:1)
grep "Natalie Portman" the_entire_internet
More Erm: making clean 64-bit code (Score:2)
architectures (alpha, sparc64, dunno about MIPS
and PPC), so this is not the first stab at
getting NetBSD 64bit clean.
- Hubert
screenshot, and a dmesg(8) output (Score:3)
and a dmesg output [netbsd.org], right off the NetBSD [netbsd.org] site.
Also, check out the NetBSD/x86_64 port page [netbsd.org]!
- Hubert
"just" a port - portability (Score:4)
For NetBSD to be portable to all the various platforms, it has to abstract the properties of these platforms, and provide interfaces between machine dependent and machine independent code, so that not every port to a new platform results in copying the whole code, and modifying it until it works on the platform, as that would give you a lot of code redundancy.
Instead, NetBSD does a (IMHO) pretty good job to avoid code redundancy, and with abstract interfaces for bus-access, DMA etc., it's amazing to see lots of code written once, and running on platforms of either endianness, CPU, bus structure, etc.
NetBSD currently runs on 44 different hardware platforms, and 12 different CPUs. If you think adding a new one is "just" a port, you miss something.
If you feel bored, you can read a bit more about what makes an operating system here [feyrer.de].
- Hubert
itanimum is power (Score:1)
SGI had some news the other day about their new itanimum box breaking some records, too -- with Linux, no less.
Treatment, not tyranny. End the drug war and free our American POWs.
rofl! (Score:1)
Re:Wow! (Score:1)
Re:Why? (Score:2)
Well, yeah, I guess there's plenty of time until 2038 when 32-bit time() will suddenly start telling us it's 1901. ;-P
How many bits? (Score:2)
Re:Why? (Score:2)
time_t when;
when = 0x7FFFFFFF;
printf("%s\n", ctime(&when));
when = 0x80000000;
printf("%s\n", ctime(&when));
Also, if time_t was unsigned, the wraparound would occur at 4 billion secons instead of 2 -- well into the XXII century.
Re:Translation? (Score:2)
I wouldn't mind (Score:2)
On the other hand, It would be nice if 32 bit *nix/*BSD distribs be out 64 bit MS product anyhow.
Not that this would be *that* hard to do, for those reasonably expert.
Check out the Vinny the Vampire [eplugz.com] comic strip
Erm... (Score:1)
1) It's a simulator. We can't really assume 100% correspondance to the actual pysical archatecutre. (ie, "bug-for-bug", etc.) Do we know if there are any -flaws- in the software?
2) The archatecture in a simmulator NOW may not be the end product. What if some things happen to change? After all we can't say that it'll use DDR or have the same specs in the end.
OTOH it's good for these reasons:
1) It's the first there, and gives the BSD crowd a jump on making clean 64-bit code for when the CPU is released.
2) Now they may get others to follow suit...
So that's my $0.02 USD.
Re:Just what we need ... (Score:1)
Just in case you doubt my credentials on this, I live in Glasgow, where two or three times a month we seem to get all our traffic interrupted by an "orange Walk", where Protestants symbolise their capture of the (at the time) predominantly Catholic Ireland.
The sad thing is, most of them have never and will never understand the true meaning of what they do, preferring to rant about "all those bloody Tims" in pubs.
Oh, and to clear up any possible confusion, I *am* in fact a Christian. No I don't have a "Jesus Saves" sticker on by rear windscreen. Yes, I do use BSD.
Re:Nooooooo!!!! (Score:1)
what about Itanium? (Score:1)
Great... (Score:1)
Viv
-----------
Re:Can we please change ... (Score:2)
"I am very uncomfortable with *BSD's connection to Satanism and demonic figures."
Exactly how is BSD connected with Satanism? I don't know any Satanists who use *BSD nor are any of the original developers satanists. The demonic figure of which you speak is a daemon, not a demon. The symbol is meant to be satirical. Daemons are processes that run in the background and keep the system running clean or offer services. Examples would be syslogd, inetd, httpd, etc.. The pitchfork he's holding represents the fork() function which is how processes are executed in the first place.
"It is morally wrong to associate a piece of software with such an image, and I sure as hell do not want my children coming into contact with it."
hmmm... this image? Have you ever seen a demon to know exactly what one looks like? Can you even prove that such a creature even exists? Oh I forgot, your religious and cultural background lead you to believe such nonesense. I guess unicorns, dragons, trolls, gnomes, elfs, leprechauns, vampires, zombies, and boogie monsters exist too. After all, by this logic they should exists since they are part of somebody's popular culture. I guess the Taliban was justified in destroying the Buddhist statues in the Bamiyan valley of Afghanistan because graven images are unislamic.
"Witches are to be burned, not honored, and I don't think that most God-fearing Christians out there want their children corrupted by such "gateway" groups."
Yes, typical Christian bigot attitude. I bet you read Arthur Millers "The Crucible" with pride don't you. The Spanish Inquisition which killed more non-Christians and Jews than Hitler probably pleases you. After all, these other people don't deserve to exist do they. The early white Christian settlers killed the native Indian populations because they were heathens and unchristian. Christianity has been responsible for more cruelty and barbaric acts than any other force in history. But, I'm sure this is a source of pride for you. Witches being burned, the Spanish Inquisition, The Crusades, The Holocaust, The destruction of Native American culture, and the enslavement of millions of African Americans are all examples of how Christian bible verses were used to justify the horrible things.
Finally, your statement "I don't think that most God-fearing Christians out there want their children corrupted by such "gateway" groups".
Well, I'm sure most God-fearing Christians don't share your extremist viewpoints. I consider your group, whatever that group is, a "gateway" group. I'll be sure to not allow my children to grow up being close-minded bigots such as yourself and I'll make sure they know all the cruel barbaric acts that your group has committed in the name of God.
Re:Alright! (Score:1)
Nice troll. I mean, I hope, anyway. You do know that, aside from the mundane DBMS application, there are all kinds of simulation software, rendering, etc that can use every GB of RAM you can throw at them.
too bad x86 will probably always be faster.
ROTFBMDOOMN
Yeah, right. We'll never need a different architecture. x86 will always be there.
Re:How many bits? (Score:1)
They're prolonged.
And as simply you can recompile any programme
with a modified time_t.
This still doesn't solve binary programmes.
--
Re:Can we please change ... (Score:1)
"BSD Demon".
There exists a (I know of four, but I know that
at least five must exist) "BSD Daemon" which are
different.
Three red and one blue... and several more?
[OT]The OpenBSD daemon parodies deraadt?
From the pure pictures I like the FreeBSE daemon
most, but the OS's not to great...
--
you SEE RED! (Score:1)
--
Re:Nooooooo!!!! (Score:2)
--Volrath50
Nooooooo!!!! (Score:5)
If this goes on we are going to have the Pentium 9 avalible before the Pentium 5, Office 2005 before Office 2003. And when that happens any Pentium 9 computer will collapse on itself, being so fast that the universe will not have sped up to account for Moore's law! Don't you ever wonder why Windows 3.11 on a 386 with 4MB of RAM was as fast as Windows XP on an Athlon 4 with 512MB of RAM???
By running NetBSD on an x86-64 simulator you are creating a gap in time. The more people use the x86-64 simulator the bigger the gap will be. Eventually the gap will become so big that stuff will start coming through. First software such as WindowsZX/2023. Unfoutonetly WindowsZX will require a 2.4 THz Pentium 13(801986) with 512GB of RAM.
So of course Intel or AMD will build a 1986/P13 simulator to run WindowsZX. The motherboard of the computer will collapse causing a HUGE reverse black hole to spit out a a REAL Pentium 13. As well as 512GB or RAM.
If you thought running an operating system from 2023 was bad you can't imagine what a Pentium 13 would do! When they turn the Pentium 13 box on it would completly deplete California's power supply. That is until the entire California from 2099 gets sucked to where California is now.
Now that California has technology from 2099 such as WindowsBLT and the Pentium 86, the Universe hasn't ajusted to Moore's law and part of the world is running 3GGLHz (Googol Hertz) machines. California is now running 300 times slower than the rest of the world, and is causing random stuff from the future to appear. Which sets those parts of the world out of sync.
By now no part of the world is in sync and parts of the future are appearing everywhere. As you probably have figured out, this will eventualy spread to the rest of the universe. Destroying it.
Motto of this story: By running NetBSD on an x86-64 simulator, you have already doomed the universe.
Have a nice day!
--Volrath50
Us, Frank .... or ..... Frank on Frank (Score:2)
fvdl writes: "[...] The porting was done by Frank van der Linden of Wasabi Systems [...]"
Well, hey, Frank you deserve the publicity!
-Kraft
Re:Erm... (Score:2)
Pardon the ignorance... (Score:2)
It'll be interesting to see how fast x86-64 GCC takes to be stable enough for production use.
But this is REALLY cool stuff - don't take the above as criticism, its not - just curious.
Re:Pardon the ignorance... (Score:2)
Answers right from the author on /. no less! Great concept :) :) Thanks for the info and great work!
As a true green AMD fanatic I can't wait to get my hands on one of these processors - just gotta find the right job :) :)
Re:Good for AMD (Score:3)
Must resist .. Imagine a Beow .. no .. no .. clust .. not gonna ... say ....it!
Whew - made it!
Re:Pardon the ignorance... (Score:3)
Re:Us, Frank .... or ..... Frank on Frank (Score:3)
Re:What they didn't tell you ... (Score:3)
Re:Alright! (Score:3)
of course, having more than 2GB of memory on x86 can only be bad news... software is already too bloated as it is.
/me pants anxiously at the prospect of buying a Real Computer someday... too bad x86 will probably always be faster.
Re:Erm... (Score:2)
Re:Why? (Score:2)
Someone report this to SPIRAC (Score:2)
--
Congrats, NetBSD team! (Score:2)
Given that Gates was operating without modern compilers and debuggers, his achievment is indisputably more impressive, but kudos to the BSD team for being almost as good as Bill Gates.
Way to go guys!