$2a$11$gPkdE5FvuGbANwGCajAcZem3IvLCCAN4h/gbZKhUQn9XrCCYzb7ma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 0084195e500acb1e483fb5a6e7fea40e75a3ef3a Mon Sep 17 00:00:00 2001 | |
From: Ben Mezger <[email protected]> | |
Date: Sun, 27 Mar 2022 03:03:10 -0300 | |
Subject: [PATCH] hibernate: finally get hibernate to work in xps | |
--- | |
default/grub | 2 +- | |
mkinitcpio.conf | 2 +- | |
systemd/sleep.conf | 2 ++ | |
3 files changed, 4 insertions(+), 2 deletions(-) |
(This is a translation of the original article in Japanese by moratorium08.)
(UPDATE (22/3/2019): Added some corrections provided by the original author.)
Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id":5, | |
"type":"M", | |
"question":"Multiple choice question", | |
"scale_start":"None", | |
"scale_start_text":"None", | |
"scale_end":"None", | |
"scale_end_text":"None", | |
"check_choices":[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package! org-projectile | |
:config | |
(map! :leader | |
(:prefix "n" | |
:desc "projectile-project-complete-read" "p" #'org-projectile-project-todo-completing-read)) | |
(defun org-projectile-get-project-todo-file (project-path) | |
(message "Called") | |
(message project-path) | |
(concat org-directory "/projects/" (file-name-nondirectory (directory-file-name project-path)) ".org"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options { | |
IGNORE_CASE = true; | |
JAVA_UNICODE_ESCAPE = true; | |
STATIC = false; | |
DEBUG_PARSER = true; | |
LOOKAHEAD = 1; | |
DEBUG_LOOKAHEAD = true; | |
} | |
PARSER_BEGIN(LanguageParser) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* LanguageParser.java */ | |
/* Generated By:JavaCC: Do not edit this line. LanguageParser.java */ | |
package compiler.parser; | |
import javax.swing.text.html.parser.Parser; | |
import java.util.List; | |
import java.util.ArrayList; | |
import java.io.InputStream; | |
import java.io.ByteArrayInputStream; | |
import java.lang.StringBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module polar-sapiens | |
go 1.14 | |
require ( | |
github.com/go-pg/pg/v10 v10.0.0-beta.2 | |
github.com/go-playground/validator/v10 v10.3.0 | |
github.com/golang-migrate/migrate/v4 v4.11.0 | |
github.com/google/uuid v1.1.1 | |
github.com/julienschmidt/httprouter v1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Move section to .init that is allocatable and executable. */ | |
.section .init, "ax" | |
.align 2 | |
.global _start | |
_start: | |
.cfi_startproc | |
.cfi_undefined ra | |
# _setup_mtrap if interrupt is not enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make CC=/Users/benmezger/Downloads/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin/bin/riscv64-unknown-elf-gcc DEBUG=1 | |
rm -r -f kernel | |
riscv64-unknown-elf-gcc -march=rv64imafdc -mcmodel=medany -mabi=lp64d -DRISCV_ARCH -O0 -lgcc -I./include/ -g -DDEBUG -Wl,--gc-sections -nostartfiles -nodefaultlibs -Wl,-T,riscv64-virt.ld src/init.c src/string.c src/ftd.c src/kmain.c src/arch/riscv/cpu.c src/arch/riscv/entry.S src/arch/riscv/trap.c src/arch/riscv/crt0.S -o kernel | |
/Users/benmezger/Downloads/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: /var/folders/cm/0ds487q92074nx51t2sdt2lr0000gp/T//ccsL9Mg2.o: in function `_scan_fdt': | |
/Users/benmezger/workspace/new-kernel/src/ftd.c:29: undefined reference to `__bswapsi2' | |
/Users/benmezger/Downloads/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-apple-darwin/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: /var/folders/cm/0ds487q92074nx51 |
NewerOlder