-
Notifications
You must be signed in to change notification settings - Fork 553
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'CosmosOS:master' into master
- Loading branch information
Showing
5 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cosmos.Core.Multiboot.Tags | ||
{ | ||
/// <summary> | ||
/// Tag AcpiOld | ||
/// </summary> | ||
[StructLayout(LayoutKind.Explicit, Size = 44)] | ||
public unsafe readonly struct AcpiNew | ||
{ | ||
[FieldOffset(0)] | ||
public readonly uint Type; | ||
[FieldOffset(4)] | ||
public readonly uint Size; | ||
[FieldOffset(8)] | ||
public readonly ulong Signature; | ||
[FieldOffset(16)] | ||
public readonly byte Checksum; | ||
[FieldOffset(17)] | ||
public readonly uint OEMID; | ||
[FieldOffset(23)] | ||
public readonly byte Revision; | ||
[FieldOffset(24)] | ||
public readonly uint RsdtAddress; | ||
[FieldOffset(28)] | ||
public readonly uint Length; | ||
[FieldOffset(32)] | ||
public readonly ulong XsdtAddress; | ||
[FieldOffset(40)] | ||
public readonly byte ExtendedChecksum; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Cosmos.Core.Multiboot.Tags | ||
{ | ||
/// <summary> | ||
/// Tag AcpiOld | ||
/// </summary> | ||
[StructLayout(LayoutKind.Explicit, Size = 28)] | ||
public unsafe readonly struct AcpiOld | ||
{ | ||
[FieldOffset(0)] | ||
public readonly uint Type; | ||
[FieldOffset(4)] | ||
public readonly uint Size; | ||
[FieldOffset(8)] | ||
public readonly ulong Signature; | ||
[FieldOffset(16)] | ||
public readonly byte Checksum; | ||
[FieldOffset(17)] | ||
public readonly uint OEMID; | ||
[FieldOffset(23)] | ||
public readonly byte Revision; | ||
[FieldOffset(24)] | ||
public readonly uint RsdtAddress; | ||
} | ||
} |