blob: 22c9f1f888d0577d9309b20021d491de5d58ea04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// 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
|