com32: add a common zero-register structure
authorH. Peter Anvin <hpa@zytor.com>
Fri, 20 Jul 2007 22:30:55 +0000 (15:30 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 20 Jul 2007 22:30:55 +0000 (15:30 -0700)
When we don't have any registers to pass, it's convenient to be able
to share a common all-zero structure.

com32/include/com32.h

index f1df2d6..264f609 100644 (file)
@@ -82,6 +82,7 @@ extern struct com32_sys_args {
 void __intcall(uint8_t __i, const com32sys_t *__sr, com32sys_t *__dr);
 void __farcall(uint16_t __es, uint16_t __eo,
               const com32sys_t *__sr, com32sys_t *__dr);
+extern const com32sys_t __com32_zero_regs;
 
 /*
  * These functions convert between linear pointers in the range