Ignore:
Timestamp:
Jun 29, 2017, 1:27:43 PM (5 years ago)
Author:
max@…
Message:

remove lw_unc, add a few ops, and update a few things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_internal.h

    r91 r94  
    3535void sti();
    3636void cli();
     37uint64_t rdtsc();
    3738uint8_t in8(uint32_t port);
    3839void out8(uint32_t port, uint8_t val);
    3940uint64_t rdmsr(uint32_t);
    4041void wrmsr(uint32_t, uint64_t);
     42
     43uint32_t atomic_cas_32(volatile uint32_t *ptr, uint32_t exp, uint32_t new);
     44void atomic_add_32(volatile uint32_t *ptr, int32_t incr);
    4145
    4246/* hal_gpt.c */
     
    5559/* x86_printf.c */
    5660void x86_panic(char *msg);
     61void x86_putc(char c);
    5762void x86_printf(char *s, ...);
    5863
Note: See TracChangeset for help on using the changeset viewer.