Ignore:
Timestamp:
Aug 1, 2017, 10:30:39 AM (7 years ago)
Author:
max@…
Message:

Add a basic syscall entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_kentry.h

    r234 r308  
    4747#define CPUVAR(off)     %gs:CPU_INFO_ ## off
    4848
     49/*
     50 * Processor Status Longword.
     51 */
     52#define PSL_C           0x00000001      /* carry flag */
     53#define PSL_PF          0x00000004      /* parity flag */
     54#define PSL_AF          0x00000010      /* auxiliary carry flag */
     55#define PSL_Z           0x00000040      /* zero flag */
     56#define PSL_N           0x00000080      /* sign flag */
     57#define PSL_T           0x00000100      /* trap flag */
     58#define PSL_I           0x00000200      /* interrupt enable flag */
     59#define PSL_D           0x00000400      /* direction flag */
     60#define PSL_V           0x00000800      /* overflow flag */
     61#define PSL_IOPL        0x00003000      /* i/o privilege level */
     62#define PSL_NT          0x00004000      /* nested task */
     63#define PSL_RF          0x00010000      /* resume flag */
     64#define PSL_VM          0x00020000      /* virtual 8086 mode */
     65#define PSL_AC          0x00040000      /* alignment check flag */
     66#define PSL_VIF         0x00080000      /* virtual interrupt enable flag */
     67#define PSL_VIP         0x00100000      /* virtual interrupt pending flag */
     68#define PSL_ID          0x00200000      /* identification flag */
     69
     70#define PSL_MBO         0x00000002      /* must be one bits */
     71#define PSL_MBZ         0xffc08028      /* must be zero bits */
     72
     73#define PSL_USERSET     (PSL_MBO | PSL_I)
     74
     75/*
     76 * Trap frame
     77 */
     78
    4979#define TF_REGSIZE      (19 * 8)
    50 
    51 #define PSL_I           0x00000200
    52 #define PSL_MBO         0x00000002
    53 #define PSL_USERSET     (PSL_MBO | PSL_I)
    5480
    5581#define INTR_SAVE_REGS  \
Note: See TracChangeset for help on using the changeset viewer.