diff options
Diffstat (limited to 'private/ntos/dll/ppc/currteb.s')
-rw-r--r-- | private/ntos/dll/ppc/currteb.s | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/private/ntos/dll/ppc/currteb.s b/private/ntos/dll/ppc/currteb.s new file mode 100644 index 000000000..96b628039 --- /dev/null +++ b/private/ntos/dll/ppc/currteb.s @@ -0,0 +1,35 @@ +// TITLE("LdrInitializeThunk") +//++ +// +// Copyright (c) 1993 IBM Corporation +// +// Module Name: +// +// currteb.s +// +// Abstract: +// +// This module creates the function descriptor for the fast path +// service call to get the current TEB address. This is isolated +// because only positive service numbers go in the service table +// and NtCurrentTeb uses a negative service number for system +// call optimization. +// +// +// Author: +// +// Chuck Bauman 29-Sep-1993 +// +// Environment: +// +// User mode. +// +// Revision History: +// +//-- + +#include "ksppc.h" + + LEAF_ENTRY(NtCurrentTeb) + mr r.3, r.13 // Return the TEB which should be in r.13 + LEAF_EXIT(NtCurrentTeb) |