summaryrefslogtreecommitdiffstats
path: root/private/ntos/rtl/alpha/ntcurteb.s
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/rtl/alpha/ntcurteb.s
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/ntos/rtl/alpha/ntcurteb.s')
-rw-r--r--private/ntos/rtl/alpha/ntcurteb.s57
1 files changed, 57 insertions, 0 deletions
diff --git a/private/ntos/rtl/alpha/ntcurteb.s b/private/ntos/rtl/alpha/ntcurteb.s
new file mode 100644
index 000000000..22c9f1f88
--- /dev/null
+++ b/private/ntos/rtl/alpha/ntcurteb.s
@@ -0,0 +1,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