#include <machine/asm.h>
#include <assym.s>
-/*
- * extern void commpage_sched_gen_inc(void);
- */
- .text
-
- .globl _commpage_sched_gen_inc
-_commpage_sched_gen_inc:
- FRAME
-
- /* Increment 32-bit commpage field if present */
- movq _commPagePtr32(%rip),%rdx
- testq %rdx,%rdx
- je 1f
- subq $(ASM_COMM_PAGE32_BASE_ADDRESS),%rdx
- lock
- incl ASM_COMM_PAGE_SCHED_GEN(%rdx)
-
- /* Increment 64-bit commpage field if present */
- movq _commPagePtr64(%rip),%rdx
- testq %rdx,%rdx
- je 1f
- subq $(ASM_COMM_PAGE32_START_ADDRESS),%rdx
- lock
- incl ASM_COMM_PAGE_SCHED_GEN(%rdx)
-1:
- EMARF
- ret
-
/* pointers to the 32-bit commpage routine descriptors */
/* WARNING: these must be sorted by commpage address! */
.const_data