Changeset db3341e in mainline for arch/amd64/include/asm.h


Ignore:
Timestamp:
2005-09-01T14:28:00Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
623ba26c
Parents:
1dde3b61
Message:

Fixed typo in 'outb' instruction.
Paging basically working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/include/asm.h

    r1dde3b61 rdb3341e  
    3737void asm_fake_loop(__u32 t);
    3838
    39 /* TODO: implement the real stuff */
    4039static inline __address get_stack_base(void)
    4140{
    42         return NULL;
     41        __address v;
     42       
     43        __asm__ volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((__u64)STACK_SIZE-1)));
     44       
     45        return v;
    4346}
    4447
     
    5255
    5356        asm (
    54                 "mov %0, %%dx;"
     57                "mov %1, %%dx;"
    5558                "inb %%dx,%%al;"
    56                 "mov %%al, %1;"
     59                "mov %%al, %0;"
    5760                :"=m"(out)
    5861                :"m"(port)
Note: See TracChangeset for help on using the changeset viewer.