NT4/private/ntos/rtl/alpha/ntcurteb.s
2020-09-30 17:12:29 +02:00

58 lines
891 B
ArmAsm
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// TITLE("Get Current TEB Pointer")
//++
//
// Copyright (c) 1992 Digital Equipment Corporation
//
// Module Name:
//
// ntcurteb.s
//
// Abstract:
//
// This module implements the function to retrieve the current TEB pointer.
//
// Author:
//
// Joe Notarangelo 29-Jul-1992
//
// Environment:
//
// Any mode.
//
// Revision History:
//
//--
#include "ksalpha.h"
//++
//
// PTEB
// NtCurrentTeb(
// VOID
// )
//
// Routine Description:
//
// This function returns the current TEB pointer retrieved via an unprivileged
// call pal. Since the call pal is unprivileged this routine is appropriate in
// any mode.
//
// Arguments:
//
// None.
//
// Return Value:
//
// Current TEB pointer.
//
//--
LEAF_ENTRY(NtCurrentTeb)
GET_THREAD_ENVIRONMENT_BLOCK // (PALcode) result in v0
ret zero, (ra) // return
.end NtCurrentTeb