Subversion Repositories HelenOS-historic

Rev

Rev 715 | Rev 726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 715 Rev 716
Line 25... Line 25...
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#include <arch/mm/page.h>
29
#include <arch/mm/page.h>
-
 
30
#include <arch/types.h>
30
#include <genarch/mm/page_ht.h>
31
#include <genarch/mm/page_ht.h>
31
#include <mm/page.h>
32
#include <mm/page.h>
32
#include <config.h>
33
#include <config.h>
33
#include <panic.h>
34
#include <panic.h>
34
 
35
 
-
 
36
__u64 thash(__u64 va);
-
 
37
__u64 thash(__u64 va)
-
 
38
{
-
 
39
    __u64 ret;
-
 
40
    asm
-
 
41
    (
-
 
42
        "thash %0=%1;;"
-
 
43
        :"=r"(ret)
-
 
44
        :"r" (va)
-
 
45
    );
-
 
46
   
-
 
47
    return ret;
-
 
48
}
-
 
49
 
-
 
50
__u64 ttag(__u64 va);
-
 
51
__u64 ttag(__u64 va)
-
 
52
{
-
 
53
    __u64 ret;
-
 
54
    asm
-
 
55
    (
-
 
56
        "ttag %0=%1;;"
-
 
57
        :"=r"(ret)
-
 
58
        :"r" (va)
-
 
59
    );
-
 
60
   
-
 
61
    return ret;
-
 
62
}
-
 
63
 
35
 
64
 
36
static void set_VHPT_environment(void)
65
static void set_VHPT_environment(void)
37
{
66
{
38
    /*
67
    /*
39
    TODO:
68
    TODO: