src/gdt.c
/* Create a C-internal representation for a GDT entry */
Create a C-internal representation for a GDT entry
Create a C - internal representation for a GDT entry
struct gdt_entry new_gdt_entry(u32 base, u32 limit, uchar privilege, uchar dir_or_control, uchar read_write, uchar exec, uchar granularity)
{
    struct gdt_entry ret_val = {base, limit, privilege, dir_or_control, read_write, exec, granularity};
    return ret_val;
}
struct gdt_entry new_gdt_entry ( u32 base , u32 limit , uchar privilege , uchar dir_or_control , uchar read_write , uchar exec , uchar granularity ) { struct gdt_entry ret_val = { base , limit , privilege , dir_or_control , read_write , exec , granularity } ; return ret_val ; }
Create a C-internal representation for a GDT entry
Create a C - internal representation for a GDT entry