public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* meaning of sizeof(_OS)?
@ 2004-01-26 11:16 Micha Feigin
  2004-01-26 18:14 ` Sergey Vlasov
       [not found] ` <20040126111648.GA2004-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Micha Feigin @ 2004-01-26 11:16 UTC (permalink / raw)
  To: acpi-devel

Was wondering at least theoretically what is supposed to be done
different by the dsdt if the os is M$ NT/XP since I saw there is an
explicit check of _OS against "Microsoft Windows NT".
Also I saw some people talking about a size check of the _OS variable
against 0x14 to see if its the M$ os. In my dsdt the check is for some
reason against 0x27, any idea what os its looking for? (is LEqual less
then or equall or does the L mean something else?)

Thanx


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: meaning of sizeof(_OS)?
  2004-01-26 11:16 meaning of sizeof(_OS)? Micha Feigin
@ 2004-01-26 18:14 ` Sergey Vlasov
       [not found] ` <20040126111648.GA2004-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey Vlasov @ 2004-01-26 18:14 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Mon, 26 Jan 2004 13:16:48 +0200 Micha Feigin wrote:

> Was wondering at least theoretically what is supposed to be done
> different by the dsdt if the os is M$ NT/XP since I saw there is an
> explicit check of _OS against "Microsoft Windows NT".
> Also I saw some people talking about a size check of the _OS variable
> against 0x14 to see if its the M$ os. In my dsdt the check is for some
> reason against 0x27, any idea what os its looking for? (is LEqual less
> then or equall or does the L mean something else?)

0x27 is probably "Microsoft WindowsME:Millennium Edition".

(I have seen a DSDT which compares strings in one place and checks
length in another place...)



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: meaning of sizeof(_OS)?
       [not found] ` <20040126111648.GA2004-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
@ 2004-01-26 18:20   ` greg
  0 siblings, 0 replies; 3+ messages in thread
From: greg @ 2004-01-26 18:20 UTC (permalink / raw)
  To: Micha Feigin, acpi-devel

Hi Micha,

   It's tough to know what the DSDT wants to do differently with the _OS 
checks without seeing the actual DSDT, as it varies from system to system.

   I think that 0x27 is checking for "Microsoft WindowsME: Millennium 
Edition" (39 characters).

   The LEqual is a Logical Equal. From the spec:


16.2.3.4.2.21  LEqual (Logical Equal)
LEqualTerm	:= LEqual(
	Source1,	//TermArg=>ComputationalData
	Source2	//TermArg=>ComputationalData
) => Boolean
Source1 and Source2 must be evaluated to the same data type as integers, 
strings, or buffers. If the values are equal, True is returned; otherwise, 
False is returned.


  Hope that helps clarify a bit.
  Greg




---------- Original Message -----------
From: Micha Feigin <michf-+lLcF8/aw9x6auLlOhE+pQ@public.gmane.org>
To: acpi-devel <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Mon, 26 Jan 2004 13:16:48 +0200
Subject: [ACPI] meaning of sizeof(_OS)?

> Was wondering at least theoretically what is supposed to be done
> different by the dsdt if the os is M$ NT/XP since I saw there is an
> explicit check of _OS against "Microsoft Windows NT".
> Also I saw some people talking about a size check of the _OS variable
> against 0x14 to see if its the M$ os. In my dsdt the check is for 
> some reason against 0x27, any idea what os its looking for? (is 
> LEqual less then or equall or does the L mean something else?)
> 
> Thanx
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
------- End of Original Message -------



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-26 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 11:16 meaning of sizeof(_OS)? Micha Feigin
2004-01-26 18:14 ` Sergey Vlasov
     [not found] ` <20040126111648.GA2004-4cxDFgrrBECgSpxsJD1C4w@public.gmane.org>
2004-01-26 18:20   ` greg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox