System Debug Reference Manual (32650-90888)

426 Chapter10
System Debug Standard Functions
func nmstacklimit
Limitations, Restrictions
If the PIN does not exist, the function result is undefined and an error status is set.
func nmstacklimit
Returns the virtual address of the limit of a process's NM stack.
Syntax
nmstacklimit (
pin
)
Formal Declaration
nmstacklimit:lptr (
pin
:u16)
Parameters
pin
The process identification number (PIN) for which the virtual address of
the NM stack limit is to be returned.
Examples
$nmdebug > wl nmstacklimit (8)
$5e4.4026ea00
Display the virtual address of the NM stack limit for PIN 8.
$nmdat > wl "NM stack size = ", nmstacklimit(pin) - nmstackbase(pin)
NM stack size = $60000
Calculate and display the NM stack length (in bytes) for the current PIN.
Limitations, Restrictions
If the PIN does not exist, the function result is undefined and an error status is set.
func nmtocmnode
Returns the CM logical code address of the closest CM node point corresponding to the
specified NM address.
Syntax
nmtocmnode (
virtaddr
[
node
])