News for hackers. Stuff that matters.
Re:A x64 OS #1: UEFI by byuu on Saturday August 06, 2016 @06:22PM (#12240155)
> I had no idea UEFI booted directly into long mode

I was really surprised to learn that it requires PE executables and Windows' custom x64 calling convention. I know it's just a small technical detail for booting ... but it's kind of scary that Microsoft had so much sway in the design of how our future PCs will boot =(

Re:A x64 OS #1: UEFI by gizmo686 on Saturday August 06, 2016 @06:56PM (#12240264)
Another small technical detail. Windows has a mechanism to sign executables. The certificate in this mechanism is defined with the following structure [0]:

    typedef struct _WIN_CERTIFICATE {
      DWORD dwLength;
      WORD  wRevision;
      WORD  wCertificateType;
      BYTE  bCertificate[ANYSIZE_ARRAY];
    } WIN_CERTIFICATE, *PWIN_CERTIFICATE;
UEFI has a shockingly simmilar structure [1, page 1812]:

    typedef struct _WIN_CERTIFICATE {
     UINT32 dwLength;
     UINT16 wRevision;
     UINT16 wCertificateType;
     //UINT8 bCertificate[ANYSIZE_ARRAY];
    } WIN_CERTIFICATE;
[0] https://msdn.microsoft.com/en-us/library/windows/desktop/dn5...

[1] http://www.uefi.org/sites/default/files/resources/UEFI%20Spe...

Re:A x64 OS #1: UEFI by yuhong on Saturday August 06, 2016 @07:08PM (#12240302)
I think this is for secure boot or something like that.
Re:A x64 OS #1: UEFI by swetland on Sunday August 07, 2016 @10:53AM (#12242219)
Oh that is not the really annoying part. By spec UEFI only requires support for booting from FAT (the particular flavor of FAT they implement) volumes, so, surprise, I've yet to seen any UEFI BIOS that supports booting from anything but a FAT filesystem.
Re:A x64 OS #1: UEFI by cmurf on Tuesday August 09, 2016 @10:29AM (#12254694)
Apple's EFI firmware boots from HFS+.
Re:A x64 OS #1: UEFI by dr_zoidberg on Sunday August 07, 2016 @01:14PM (#12242696)
From the relevant Wikipedia article[0]:

> PE is a modified version of the Unix COFF (Common Object File Format). PE/COFF is an alternative term in Windows development.

However, there's little information on its license (it says it's a standard currently developed by Microsoft, but that's about it). And COFF is pretty much the same, but older and developed by AT&T[1].

Still, compared to other Microsoft "products of old"[2], there's a surprising ammount of documentation and analysis into the PE format.

[0] https://en.wikipedia.org/wiki/Portable_Executable

[1] https://en.wikipedia.org/wiki/COFF

[2] I don't compare it to the newer open source stuff because it'd be unfair.

[3] https://msdn.microsoft.com/en-us/library/ms809762.aspx -- I was going to link a few other articles (some from the References section of Wikipedia) but most seem to be broken now. Still, there are some interesting paperes from digital forensics people that analyze in-depth the PE format, mostly for malware scenarios.

Re:A x64 OS #1: UEFI by yuhong on Saturday August 06, 2016 @06:27PM (#12240178)
MS even had to add ARM64 to the PE spec in order to support ARM SBSA. At least I think the FAT LFN patents has expired by now.
Re:A x64 OS #1: UEFI by DiabloD3 on Sunday August 07, 2016 @01:50AM (#12241213)
Microsoft has granted a patent license for FAT patents for anyone implementing stuff required for UEFI.
Re:A x64 OS #1: UEFI by slipstream- on Sunday August 07, 2016 @07:44AM (#12241808)
There is lots of evidence that a port of NT to ARM64 exists.
Re:A x64 OS #1: UEFI by cocotino on Sunday August 07, 2016 @07:49AM (#12241815)
Do you even need LFN for UEFI? I don't think it should be a requirement for a FS that is not exposed to the user...
Re:A x64 OS #1: UEFI by sigcode on Saturday August 06, 2016 @07:39PM (#12240392)
Do you think there are any BIOS developers who can do all their work without Microsoft Windows?
Re:A x64 OS #1: UEFI by ptman on Monday August 08, 2016 @08:55AM (#12247322)
Maybe Soekris comBIOS
Re:A x64 OS #1: UEFI by digi_owl on Sunday August 07, 2016 @06:01PM (#12243923)
WinTel is concept for a reason...