[haiku-commits] Re: BRANCH xyzzy-github.x86_64 - in src/system: boot/platform/bios_ia32 kernel/arch/x86 kernel/arch/x86/32

  • From: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 11 Jul 2012 20:49:57 +0200

xyzzy-github.x86_64 wrote:
[...]
> diff --git a/headers/private/kernel/arch/x86/32/descriptors.h 
> b/headers/private/kernel/arch/x86/32/descriptors.h
> index c578acf..81fd842 100644
> --- a/headers/private/kernel/arch/x86/32/descriptors.h
> +++ b/headers/private/kernel/arch/x86/32/descriptors.h
> @@ -50,6 +50,10 @@ typedef struct segment_descriptor {
>   uint32 base_31_24 : 8; // 24 - 31
>  } segment_descriptor;
>  
> +typedef struct interrupt_descriptor {
> + uint32 a, b;
> +} interrupt_descriptor;
> +
>  struct tss {
>   uint16 prev_task;
>   uint16 unused0;
> diff --git a/src/system/boot/platform/bios_ia32/interrupts.cpp 
> b/src/system/boot/platform/bios_ia32/interrupts.cpp
> index c5efc58..2d5d0fa 100644
> --- a/src/system/boot/platform/bios_ia32/interrupts.cpp
> +++ b/src/system/boot/platform/bios_ia32/interrupts.cpp
> @@ -83,11 +83,6 @@ struct interrupt_frame {
>   uint32 eflags;
>  };
>  
> -struct interrupt_descriptor {
> - uint32 a;
> - uint32 b;
> -};

Please stick with the one line per member style.

CU, Ingo

Other related posts: