Subversion Repositories HelenOS

Rev

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

Rev 2082 Rev 2515
Line 37... Line 37...
37
 
37
 
38
#include <config.h>
38
#include <config.h>
39
#include <arch/types.h>
39
#include <arch/types.h>
40
#include <arch/register.h>
40
#include <arch/register.h>
41
 
41
 
-
 
42
 
-
 
43
#define IA64_IOSPACE_ADDRESS 0xE0000FFFFC000000ULL
-
 
44
 
-
 
45
static inline void  outb(uint64_t port,uint8_t v)
-
 
46
{
-
 
47
    *((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 )))) = v;
-
 
48
    asm volatile ("mf\n" ::: "memory");
-
 
49
}
-
 
50
 
-
 
51
 
-
 
52
static inline uint8_t inb(uint64_t port)
-
 
53
{
-
 
54
    asm volatile ("mf\n" ::: "memory");
-
 
55
    return *((char *)(IA64_IOSPACE_ADDRESS + ( (port & 0xfff) | ( (port >> 2) << 12 ))));
-
 
56
}
-
 
57
 
-
 
58
 
-
 
59
 
42
/** Return base address of current stack
60
/** Return base address of current stack
43
 *
61
 *
44
 * Return the base address of the current stack.
62
 * Return the base address of the current stack.
45
 * The stack is assumed to be STACK_SIZE long.
63
 * The stack is assumed to be STACK_SIZE long.
46
 * The stack must start on page boundary.
64
 * The stack must start on page boundary.