@zigc/lib 0.17.0-dev.329 → 0.17.0-dev.340

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/libc/include/aarch64-openbsd-none/arm64/cpu.h +7 -1
  2. package/libc/include/aarch64-openbsd-none/arm64/intr.h +9 -1
  3. package/libc/include/aarch64-openbsd-none/machine/cpu.h +7 -1
  4. package/libc/include/aarch64-openbsd-none/machine/intr.h +9 -1
  5. package/libc/include/generic-openbsd/db.h +1 -7
  6. package/libc/include/generic-openbsd/ddb/db_interface.h +2 -1
  7. package/libc/include/generic-openbsd/fnmatch.h +6 -2
  8. package/libc/include/generic-openbsd/login_cap.h +3 -1
  9. package/libc/include/generic-openbsd/miscfs/fuse/fusefs_node.h +2 -1
  10. package/libc/include/generic-openbsd/net/bpf.h +3 -1
  11. package/libc/include/generic-openbsd/net/hfsc.h +4 -4
  12. package/libc/include/generic-openbsd/net/if.h +5 -1
  13. package/libc/include/generic-openbsd/net/if_bridge.h +48 -1
  14. package/libc/include/generic-openbsd/net/if_etherbridge.h +20 -7
  15. package/libc/include/generic-openbsd/net/if_media.h +26 -1
  16. package/libc/include/generic-openbsd/net/if_pflow.h +71 -20
  17. package/libc/include/generic-openbsd/net/if_pfsync.h +2 -2
  18. package/libc/include/generic-openbsd/net/if_sppp.h +2 -1
  19. package/libc/include/generic-openbsd/net/if_trunk.h +3 -2
  20. package/libc/include/generic-openbsd/net/if_types.h +2 -2
  21. package/libc/include/generic-openbsd/net/if_var.h +34 -12
  22. package/libc/include/generic-openbsd/net/netisr.h +1 -3
  23. package/libc/include/generic-openbsd/net/pfvar.h +154 -1
  24. package/libc/include/generic-openbsd/net/pfvar_priv.h +256 -1
  25. package/libc/include/generic-openbsd/net80211/ieee80211.h +76 -4
  26. package/libc/include/generic-openbsd/net80211/ieee80211_ioctl.h +3 -2
  27. package/libc/include/generic-openbsd/net80211/ieee80211_node.h +48 -2
  28. package/libc/include/generic-openbsd/net80211/ieee80211_proto.h +4 -1
  29. package/libc/include/generic-openbsd/net80211/ieee80211_var.h +18 -2
  30. package/libc/include/generic-openbsd/netinet/if_ether.h +12 -11
  31. package/libc/include/generic-openbsd/netinet/igmp_var.h +17 -3
  32. package/libc/include/generic-openbsd/netinet/in_pcb.h +2 -1
  33. package/libc/include/generic-openbsd/netinet/in_var.h +17 -59
  34. package/libc/include/generic-openbsd/netinet/ip.h +3 -2
  35. package/libc/include/generic-openbsd/netinet/tcp_timer.h +1 -2
  36. package/libc/include/generic-openbsd/netinet6/in6_var.h +15 -29
  37. package/libc/include/generic-openbsd/netinet6/ip6_var.h +1 -2
  38. package/libc/include/generic-openbsd/netinet6/mld6_var.h +17 -4
  39. package/libc/include/generic-openbsd/netinet6/nd6.h +2 -2
  40. package/libc/include/generic-openbsd/pthread.h +2 -2
  41. package/libc/include/generic-openbsd/signal.h +2 -2
  42. package/libc/include/generic-openbsd/sndio.h +6 -12
  43. package/libc/include/generic-openbsd/strings.h +5 -1
  44. package/libc/include/generic-openbsd/sys/device.h +4 -3
  45. package/libc/include/generic-openbsd/sys/disklabel.h +17 -5
  46. package/libc/include/generic-openbsd/sys/dkio.h +3 -5
  47. package/libc/include/generic-openbsd/sys/filedesc.h +3 -2
  48. package/libc/include/generic-openbsd/sys/mbuf.h +1 -1
  49. package/libc/include/generic-openbsd/sys/mman.h +7 -2
  50. package/libc/include/generic-openbsd/sys/mutex.h +10 -7
  51. package/libc/include/generic-openbsd/sys/namei.h +8 -7
  52. package/libc/include/generic-openbsd/sys/param.h +1 -1
  53. package/libc/include/generic-openbsd/sys/pledge.h +1 -3
  54. package/libc/include/generic-openbsd/sys/protosw.h +8 -1
  55. package/libc/include/generic-openbsd/sys/ptrace.h +4 -1
  56. package/libc/include/generic-openbsd/sys/sched.h +8 -1
  57. package/libc/include/generic-openbsd/sys/signal.h +4 -2
  58. package/libc/include/generic-openbsd/sys/socketvar.h +2 -1
  59. package/libc/include/generic-openbsd/sys/sockio.h +11 -1
  60. package/libc/include/generic-openbsd/sys/syscall.h +5 -3
  61. package/libc/include/generic-openbsd/sys/syscallargs.h +9 -2
  62. package/libc/include/generic-openbsd/sys/sysctl.h +7 -4
  63. package/libc/include/generic-openbsd/sys/types.h +6 -2
  64. package/libc/include/generic-openbsd/sys/videoio.h +143 -68
  65. package/libc/include/generic-openbsd/sys/xcall.h +2 -2
  66. package/libc/include/generic-openbsd/time.h +2 -2
  67. package/libc/include/generic-openbsd/unistd.h +2 -2
  68. package/libc/include/generic-openbsd/uvm/uvm_anon.h +2 -3
  69. package/libc/include/generic-openbsd/uvm/uvm_extern.h +1 -19
  70. package/libc/include/generic-openbsd/uvm/uvm_pager.h +3 -4
  71. package/libc/include/generic-openbsd/uvm/uvm_pmemrange.h +1 -2
  72. package/libc/include/generic-openbsd/uvm/uvm_swap.h +4 -1
  73. package/libc/include/generic-openbsd/uvm/uvm_vnode.h +3 -4
  74. package/libc/include/generic-openbsd/uvm/uvmexp.h +41 -35
  75. package/libc/include/mips64-openbsd-none/machine/octeonvar.h +1 -27
  76. package/libc/include/mips64-openbsd-none/octeon/octeonvar.h +1 -27
  77. package/libc/include/mips64el-openbsd-none/loongson/apmvar.h +1 -1
  78. package/libc/include/mips64el-openbsd-none/loongson/param.h +1 -5
  79. package/libc/include/mips64el-openbsd-none/machine/apmvar.h +1 -1
  80. package/libc/include/mips64el-openbsd-none/machine/param.h +1 -5
  81. package/libc/include/powerpc-openbsd-eabihf/powerpc/intr.h +1 -4
  82. package/libc/include/powerpc64-openbsd-none/machine/atomic.h +3 -3
  83. package/libc/include/powerpc64-openbsd-none/powerpc64/atomic.h +3 -3
  84. package/libc/include/riscv64-openbsd-none/machine/cpu.h +4 -8
  85. package/libc/include/riscv64-openbsd-none/machine/cpufunc.h +4 -4
  86. package/libc/include/riscv64-openbsd-none/machine/pmap.h +5 -1
  87. package/libc/include/riscv64-openbsd-none/machine/pte.h +9 -1
  88. package/libc/include/riscv64-openbsd-none/riscv64/cpu.h +4 -8
  89. package/libc/include/riscv64-openbsd-none/riscv64/cpufunc.h +4 -4
  90. package/libc/include/riscv64-openbsd-none/riscv64/pmap.h +5 -1
  91. package/libc/include/riscv64-openbsd-none/riscv64/pte.h +9 -1
  92. package/libc/include/x86-openbsd-none/i386/specialreg.h +3 -1
  93. package/libc/include/x86-openbsd-none/machine/specialreg.h +3 -1
  94. package/libc/include/x86_64-openbsd-none/amd64/conf.h +11 -2
  95. package/libc/include/x86_64-openbsd-none/amd64/cpu.h +14 -4
  96. package/libc/include/x86_64-openbsd-none/amd64/cpufunc.h +2 -3
  97. package/libc/include/x86_64-openbsd-none/amd64/ghcb.h +2 -1
  98. package/libc/include/x86_64-openbsd-none/amd64/i82489var.h +2 -4
  99. package/libc/include/x86_64-openbsd-none/amd64/i8259.h +1 -53
  100. package/libc/include/x86_64-openbsd-none/amd64/intr.h +5 -2
  101. package/libc/include/x86_64-openbsd-none/amd64/intrdefs.h +9 -7
  102. package/libc/include/x86_64-openbsd-none/amd64/kexec.h +48 -0
  103. package/libc/include/x86_64-openbsd-none/amd64/specialreg.h +4 -1
  104. package/libc/include/x86_64-openbsd-none/machine/conf.h +11 -2
  105. package/libc/include/x86_64-openbsd-none/machine/cpu.h +14 -4
  106. package/libc/include/x86_64-openbsd-none/machine/cpufunc.h +2 -3
  107. package/libc/include/x86_64-openbsd-none/machine/ghcb.h +2 -1
  108. package/libc/include/x86_64-openbsd-none/machine/i82489var.h +2 -4
  109. package/libc/include/x86_64-openbsd-none/machine/i8259.h +1 -53
  110. package/libc/include/x86_64-openbsd-none/machine/intr.h +5 -2
  111. package/libc/include/x86_64-openbsd-none/machine/intrdefs.h +9 -7
  112. package/libc/include/x86_64-openbsd-none/machine/kexec.h +48 -0
  113. package/libc/include/x86_64-openbsd-none/machine/specialreg.h +4 -1
  114. package/libc/openbsd/abilists +0 -0
  115. package/package.json +1 -1
  116. package/std/Io/File.zig +6 -0
  117. package/std/Target.zig +2 -7
  118. package/std/bit_set.zig +0 -1
  119. package/std/crypto/ascon.zig +0 -2
  120. package/std/crypto/salsa20.zig +0 -6
  121. package/std/crypto/sha3.zig +0 -2
  122. package/std/debug/cpu_context.zig +0 -21
  123. package/libc/include/mips64el-openbsd-none/loongson/hibernate.h +0 -33
  124. package/libc/include/mips64el-openbsd-none/loongson/hibernate_var.h +0 -39
  125. package/libc/include/mips64el-openbsd-none/machine/hibernate.h +0 -33
  126. package/libc/include/mips64el-openbsd-none/machine/hibernate_var.h +0 -39
package/std/Io/File.zig CHANGED
@@ -268,6 +268,12 @@ pub const SetLengthError = error{
268
268
  /// Truncates or expands the file, populating any new data with zeroes.
269
269
  ///
270
270
  /// The file offset after this call is left unchanged.
271
+ ///
272
+ /// This function operates on an open file handle. There is not an equivalent
273
+ /// function in `Dir` which operates on paths because generally, such
274
+ /// functionality will introduce Time-Of-Check, Time-Of-Use (TOCTOU) bugs. In
275
+ /// the rare case when those semantics are actually needed, it is reasonable to
276
+ /// open the file with the truncate flag.
271
277
  pub fn setLength(file: File, io: Io, new_length: u64) SetLengthError!void {
272
278
  return io.vtable.fileSetLength(io.userdata, file, new_length);
273
279
  }
package/std/Target.zig CHANGED
@@ -552,7 +552,7 @@ pub const Os = struct {
552
552
 
553
553
  break :blk default_min;
554
554
  },
555
- .max = .{ .major = 7, .minor = 8, .patch = 0 },
555
+ .max = .{ .major = 7, .minor = 9, .patch = 0 },
556
556
  },
557
557
  },
558
558
 
@@ -852,9 +852,7 @@ pub const Abi = enum {
852
852
  else => .none,
853
853
  },
854
854
  .haiku => switch (arch) {
855
- .arm,
856
- .powerpc,
857
- => .eabihf,
855
+ .arm => .eabihf,
858
856
  else => .none,
859
857
  },
860
858
  .hurd => .gnu,
@@ -2461,10 +2459,7 @@ pub const DynamicLinker = struct {
2461
2459
  .haiku => switch (cpu.arch) {
2462
2460
  .arm,
2463
2461
  .aarch64,
2464
- .m68k,
2465
- .powerpc,
2466
2462
  .riscv64,
2467
- .sparc64,
2468
2463
  .x86,
2469
2464
  .x86_64,
2470
2465
  => init("/system/runtime_loader"),
package/std/bit_set.zig CHANGED
@@ -1708,7 +1708,6 @@ fn testStaticBitSet(comptime Set: type) !void {
1708
1708
 
1709
1709
  test Integer {
1710
1710
  if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
1711
- if (comptime builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24300
1712
1711
 
1713
1712
  try testStaticBitSet(Integer(0));
1714
1713
  try testStaticBitSet(Integer(1));
@@ -980,8 +980,6 @@ test "Ascon-CXOF128 with customization" {
980
980
  }
981
981
 
982
982
  test "Ascon-AEAD128 round trip with various data sizes" {
983
- if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
984
-
985
983
  const key = [_]u8{ 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF, 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 };
986
984
  const nonce = [_]u8{ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
987
985
 
@@ -557,8 +557,6 @@ pub const SealedBox = struct {
557
557
  const htest = @import("test.zig");
558
558
 
559
559
  test "(x)salsa20" {
560
- if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
561
-
562
560
  const key: [32]u8 = @splat(0x69);
563
561
  const nonce: [8]u8 = @splat(0x42);
564
562
  const msg: [20]u8 = @splat(0);
@@ -604,8 +602,6 @@ test "xsalsa20poly1305 secretbox" {
604
602
  }
605
603
 
606
604
  test "xsalsa20poly1305 box" {
607
- if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
608
-
609
605
  const io = std.testing.io;
610
606
  var msg: [100]u8 = undefined;
611
607
  var msg2: [msg.len]u8 = undefined;
@@ -621,8 +617,6 @@ test "xsalsa20poly1305 box" {
621
617
  }
622
618
 
623
619
  test "xsalsa20poly1305 sealedbox" {
624
- if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
625
-
626
620
  const io = std.testing.io;
627
621
  var msg: [100]u8 = undefined;
628
622
  var msg2: [msg.len]u8 = undefined;
@@ -583,8 +583,6 @@ test "sha3-384 streaming" {
583
583
  }
584
584
 
585
585
  test "sha3-512 single" {
586
- if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/25083
587
-
588
586
  const h1 = "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26";
589
587
  try htest.assertEqualHash(Sha3_512, h1, "");
590
588
  const h2 = "b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0";
@@ -2600,25 +2600,6 @@ const signal_ucontext_t = switch (native_os) {
2600
2600
  sp: u64,
2601
2601
  pc: u64,
2602
2602
  },
2603
- // https://github.com/haiku/haiku/blob/47538c534fe0aadc626c09d121773fee8ea10d71/headers/posix/arch/m68k/signal.h
2604
- .m68k => extern struct {
2605
- pc: u32 align(8),
2606
- d: [8]u32,
2607
- a: [8]u32,
2608
- },
2609
- // https://github.com/haiku/haiku/blob/47538c534fe0aadc626c09d121773fee8ea10d71/headers/posix/arch/ppc/signal.h
2610
- .powerpc => extern struct {
2611
- pc: u32 align(8),
2612
- r: [13]u32, // Um, are you okay, Haiku?
2613
- _f: [14]f64,
2614
- _reserved: u32,
2615
- _fpscr: u32,
2616
- _ctr: u32,
2617
- _xer: u32,
2618
- _cr: u32,
2619
- _msr: u32,
2620
- lr: u32,
2621
- },
2622
2603
  // https://github.com/haiku/haiku/blob/47538c534fe0aadc626c09d121773fee8ea10d71/headers/posix/arch/riscv64/signal.h
2623
2604
  .riscv64 => extern struct {
2624
2605
  ra_sp_gp_tp: [4]u64,
@@ -2629,8 +2610,6 @@ const signal_ucontext_t = switch (native_os) {
2629
2610
  t3_6: [4]u64,
2630
2611
  pc: u64,
2631
2612
  },
2632
- // https://github.com/haiku/haiku/blob/47538c534fe0aadc626c09d121773fee8ea10d71/headers/posix/arch/sparc64/signal.h
2633
- .sparc64 => @compileError("sparc64-haiku mcontext_t missing"),
2634
2613
  // https://github.com/haiku/haiku/blob/47538c534fe0aadc626c09d121773fee8ea10d71/headers/posix/arch/x86/signal.h
2635
2614
  .x86 => extern struct {
2636
2615
  eip: u32,
@@ -1,33 +0,0 @@
1
- /* $OpenBSD: hibernate.h,v 1.3 2018/06/21 07:33:30 mlarkin Exp $ */
2
-
3
- /*
4
- * Copyright (c) 2013 Paul Irofti.
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
-
20
- #include <machine/hibernate_var.h>
21
-
22
- /* Loongson hibernate support structures and functions */
23
-
24
- int get_hibernate_info_md(union hibernate_info *);
25
- void hibernate_flush(void);
26
- void hibernate_enter_resume_mapping(vaddr_t, paddr_t, int);
27
- int hibernate_inflate_skip(union hibernate_info *, paddr_t);
28
- int hibernate_suspend(void);
29
- void hibernate_switch_stack_machdep(void);
30
- void hibernate_resume_machdep(vaddr_t);
31
- void hibernate_activate_resume_pt_machdep(void);
32
- void hibernate_enable_intr_machdep(void);
33
- void hibernate_disable_intr_machdep(void);
@@ -1,39 +0,0 @@
1
- /* $OpenBSD: hibernate_var.h,v 1.1 2013/06/02 21:46:04 pirofti Exp $ */
2
-
3
- /*
4
- * Copyright (c) 2013 Paul Irofti.
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
- /* Loongson hibernate support definitions */
20
-
21
- #define PAGE_MASK_4M ((256 * PAGE_SIZE) - 1)
22
-
23
- #define PIGLET_PAGE_MASK ~((paddr_t)PAGE_MASK_4M)
24
-
25
- /*
26
- * Steal hibernate pages right after the first page which is reserved
27
- * for the exception area.
28
- * */
29
- #define HIBERNATE_STACK_PAGE (PAGE_SIZE * 1)
30
- #define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 2)
31
- #define HIBERNATE_COPY_PAGE (PAGE_SIZE * 3)
32
- #define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 4)
33
-
34
- #define HIBERNATE_RESERVED_PAGES 4
35
-
36
- /* Use 4MB hibernation chunks */
37
- #define HIBERNATE_CHUNK_SIZE 0x400000
38
-
39
- #define HIBERNATE_CHUNK_TABLE_SIZE 0x100000
@@ -1,33 +0,0 @@
1
- /* $OpenBSD: hibernate.h,v 1.3 2018/06/21 07:33:30 mlarkin Exp $ */
2
-
3
- /*
4
- * Copyright (c) 2013 Paul Irofti.
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
-
20
- #include <machine/hibernate_var.h>
21
-
22
- /* Loongson hibernate support structures and functions */
23
-
24
- int get_hibernate_info_md(union hibernate_info *);
25
- void hibernate_flush(void);
26
- void hibernate_enter_resume_mapping(vaddr_t, paddr_t, int);
27
- int hibernate_inflate_skip(union hibernate_info *, paddr_t);
28
- int hibernate_suspend(void);
29
- void hibernate_switch_stack_machdep(void);
30
- void hibernate_resume_machdep(vaddr_t);
31
- void hibernate_activate_resume_pt_machdep(void);
32
- void hibernate_enable_intr_machdep(void);
33
- void hibernate_disable_intr_machdep(void);
@@ -1,39 +0,0 @@
1
- /* $OpenBSD: hibernate_var.h,v 1.1 2013/06/02 21:46:04 pirofti Exp $ */
2
-
3
- /*
4
- * Copyright (c) 2013 Paul Irofti.
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
- /* Loongson hibernate support definitions */
20
-
21
- #define PAGE_MASK_4M ((256 * PAGE_SIZE) - 1)
22
-
23
- #define PIGLET_PAGE_MASK ~((paddr_t)PAGE_MASK_4M)
24
-
25
- /*
26
- * Steal hibernate pages right after the first page which is reserved
27
- * for the exception area.
28
- * */
29
- #define HIBERNATE_STACK_PAGE (PAGE_SIZE * 1)
30
- #define HIBERNATE_INFLATE_PAGE (PAGE_SIZE * 2)
31
- #define HIBERNATE_COPY_PAGE (PAGE_SIZE * 3)
32
- #define HIBERNATE_HIBALLOC_PAGE (PAGE_SIZE * 4)
33
-
34
- #define HIBERNATE_RESERVED_PAGES 4
35
-
36
- /* Use 4MB hibernation chunks */
37
- #define HIBERNATE_CHUNK_SIZE 0x400000
38
-
39
- #define HIBERNATE_CHUNK_TABLE_SIZE 0x100000