News for hackers. Stuff that matters.
Re:Let’s write a simple Kernel (2014) by billpg on Friday October 20, 2017 @08:00AM (#15515054)
Decades ago, I wrote a very simple operating system. It was an MSDOS EXE that when run, took over all available memory and rewrote all the interrupt vectors. You couldn't "exit" back to DOS because by then it had gone - you could only power-cycle the machine and let MSDOS boot up normally.

Because it launched from DOS, many insisted to me it wasn't really an operating system. What was it if it wasn't an operating system?

Re:Let’s write a simple Kernel (2014) by gmueckl on Friday October 20, 2017 @02:11PM (#15517920)
Novell Netware actually used DOS as a glorified boot loader. Also, there was at a point a small DOS program that acted as a Linux boot loader. It brought you from a DOS prompt straight to a Linux virtual terminal without reset. I think SuSE shipped it for a while as an alternative means to launch their setup, but memory fades.
Re:Let’s write a simple Kernel (2014) by bri3d on Friday October 20, 2017 @02:35PM (#15518125)
loadlin.exe! It ran under memory-unsafe Windows (95/98/Me) as well.
Re:Let’s write a simple Kernel (2014) by jacquesm on Friday October 20, 2017 @08:10AM (#15515107)
An operating system exports abstract facilities such as hardware, storage and other useful bits to other software we call applications. How you get there doesn't matter, what you do once you are there makes the difference.

So I guess both you and your friends were wrong.

Re:Let’s write a simple Kernel (2014) by mmphosis on Wednesday October 25, 2017 @05:46AM (#15548747)
According to the File Manager the linux kernel is a DOS/Windows program:

  Name: vmlinuz-*
  Kind: DOS/Windows executable
Re:Let’s write a simple Kernel (2014) by gpderetta on Friday October 20, 2017 @08:17AM (#15515143)
You could think of MSDOS as a glorified bootloader...
Re:Let’s write a simple Kernel (2014) by laumars on Friday October 20, 2017 @10:00AM (#15515797)
To be fair, Windows used MS DOS as a bootloader for decades.
Re:Let’s write a simple Kernel (2014) by a-priori on Friday October 20, 2017 @10:45AM (#15516164)
Only the consumer line that ended at Windows ME.

The Windows NT line, which subsumed the consumer line starting at Windows 2000, always used its own bootloader. So has Windows CE.

Re:Let’s write a simple Kernel (2014) by laumars on Friday October 20, 2017 @11:52AM (#15516720)
Well yes, clearly. That's why I used past tense rather than saying "still uses" and why I didn't mention NT nor CE (I also didn't mention Microsoft BASIC nor Xenix - just so you know they didn't use DOS as a bootloader either :P). I figured the context was obvious given the audience of HN, but clearly not.

Anyhow, my point was just to reinforce the GP's point that it's ok to think about DOS as a bootloader because Microsoft have done exactly this themselves.

Re:Let’s write a simple Kernel (2014) by bogomipz on Friday October 20, 2017 @11:38AM (#15516597)
Sure that's what the splash screen was actually hiding right?
Re:Let’s write a simple Kernel (2014) by laumars on Friday October 20, 2017 @12:01PM (#15516816)
The splash screen would start when win.exe (or was it win.com? I forget now) started. So you'd catch a glimpse of DOS before the splash. This was back in the 9x era though. Back in the days of 3.x I think it was still pretty common to boot to DOS and then start Windows manually.
Re:Let’s write a simple Kernel (2014) by isostatic on Saturday October 21, 2017 @07:11PM (#15524118)
Yes in dos/win3.1 you might have win.exe at the end of autoexec.bat, you might have dosshell in there. You might have some Novell "login.exe" instead. Or maybe it was good old command.com.

Win95 had a full screen splash which was an RLE file called logo.sys, loaded by the win95 boot process. I don't think autoexec even ran under 95/98/me. I'm sure that Wikipedia will have the full history though.

Re:Let’s write a simple Kernel (2014) by laumars on Sunday October 22, 2017 @07:21AM (#15526235)
Autoexec did run on Win95. I remember spending hours tweaking it back in those days. Though I think it was mainly used for DOS programs and maybe some environmental variables (eg for JAVA).

I remember writing my own logo.sys boot splashes. If I recall correctly they were just bitmaps with a couple of values altered in a hex editor to define which sequence of colours (in the colour palette) to animate.