Ignore:
Timestamp:
Jun 21, 2017, 8:35:30 AM (5 years ago)
Author:
max@…
Message:

Update. The kernel now enables the GDT/IDT, and has trap entries. A
x86_printf function is added for debugging purposes only. The new Makefile
will come in another commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/hal_types.h

    r25 r29  
    3131#endif
    3232
     33#define __packed        __attribute__((__packed__))
     34#define __arraycount(a) (sizeof(a) / sizeof(*(a)))
     35#define __in_kdata      __attribute__((section(".kdata")))
     36
     37
    3338/**************************************************************************
    3439 *                      Exact-width integer types. 
     
    4651typedef   signed long long int      int64_t;
    4752typedef unsigned long long int     uint64_t;
     53
     54typedef uint64_t                     size_t;
    4855
    4956/***************************************************************************
Note: See TracChangeset for help on using the changeset viewer.