mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 04:49:16 +00:00
Add implementation for GDT & IDT on x32 and QoL fixes
This commit is contained in:
@ -36,7 +36,7 @@ namespace SMBIOS
|
||||
|
||||
SMBIOSEntryPoint *GetSMBIOSEntryPoint() { return (SMBIOSEntryPoint *)bInfo.SMBIOSPtr; }
|
||||
|
||||
static inline int SMBIOSTableLength(SMBIOSHeader *Hdr)
|
||||
__no_sanitize("alignment") static inline int SMBIOSTableLength(SMBIOSHeader *Hdr)
|
||||
{
|
||||
int i;
|
||||
const char *strtab = (char *)Hdr + Hdr->Length;
|
||||
@ -45,7 +45,7 @@ namespace SMBIOS
|
||||
return Hdr->Length + i + 1;
|
||||
}
|
||||
|
||||
void *GetSMBIOSHeader(SMBIOSType Type)
|
||||
__no_sanitize("alignment") void *GetSMBIOSHeader(SMBIOSType Type)
|
||||
{
|
||||
if (!CheckSMBIOS())
|
||||
return nullptr;
|
||||
|
Reference in New Issue
Block a user