summaryrefslogtreecommitdiffstats
path: root/private/ntos/fw/mips/confsub.s
blob: ec2ea25b76d24948530f5876849858e847a39679 (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
/*++

Copyright (c) 1992  Microsoft Corporation

Module Name:

        conftest.s

Abstract:

        This module contains configuration test subroutines.

Author:

        David Robinson (davidro) 21-May-1992

--*/

//
// include header file
//
#include <ksmips.h>


/*++

Routine Description:

        This routine reads the processor id register and returns the
        value.

Arguments:

    None.

Return Value:

    None.

--*/
.text
.set noat
.set noreorder

        LEAF_ENTRY(CtReadProcessorId)
        mfc0    v0,prid                 // read the processor id
        nop
        j       ra
        nop
        .end  CtReadProcessorId