Changeset 4544749e in rtems


Ignore:
Timestamp:
Aug 13, 2018, 10:33:12 AM (15 months ago)
Author:
Amaan Cheval <amaan.cheval@…>
Branches:
master
Children:
6869321
Parents:
6eccd0c
git-author:
Amaan Cheval <amaan.cheval@…> (08/13/18 10:33:12)
git-committer:
Joel Sherrill <joel@…> (08/13/18 15:48:20)
Message:

bsps/x86_64: Add paging support with 1GiB super pages

Updates #2898.

Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/x86_64/amd64/start/bspstart.c

    r6eccd0c r4544749e  
    2727#include <bsp.h>
    2828#include <bsp/bootcard.h>
     29#include <libcpu/page.h>
    2930
    3031void bsp_start(void)
    3132{
     33  paging_init();
    3234}
  • c/src/lib/libbsp/x86_64/amd64/Makefile.am

    r6eccd0c r4544749e  
    2424librtemsbsp_a_SOURCES += ../../../../../../bsps/x86_64/amd64/start/bspstart.c
    2525librtemsbsp_a_SOURCES += ../../../../../../bsps/x86_64/amd64/start/start.c
     26librtemsbsp_a_SOURCES += ../../../../../../bsps/x86_64/amd64/start/page.c
    2627librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/start/sbrk.c
    2728librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/getentropy/getentropy-cpucounter.c
  • cpukit/score/cpu/x86_64/include/rtems/score/cpu_asm.h

    r6eccd0c r4544749e  
    4646}
    4747
     48
     49RTEMS_INLINE_ROUTINE void amd64_set_cr3(uint64_t segment)
     50{
     51  __asm__ volatile ( "movq %0, %%cr3" : "=r" (segment) : "0" (segment) );
     52}
     53
     54RTEMS_INLINE_ROUTINE void cpuid(
     55  uint32_t code, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx
     56) {
     57  __asm__ volatile ( "cpuid"
     58                     : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx)
     59                     : "a" (code) );
     60}
    4861#endif /* !ASM */
    4962
Note: See TracChangeset for help on using the changeset viewer.